:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef3f8;
  color: #15202b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(19, 91, 132, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(219, 128, 55, 0.14), transparent 42%),
    #eef3f8;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.panel {
  width: min(760px, 100%);
  background: #ffffff;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(21, 32, 43, 0.14);
  padding: clamp(22px, 5vw, 42px);
}

.server-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9f5ff;
  color: #0d5c8a;
  border: 1px solid #bfdff2;
  font-size: 0.88rem;
  font-weight: 700;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  margin: 0 0 24px;
  color: #536475;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #263645;
}

label span {
  min-height: 22px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c7d3;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #ffffff;
  color: #15202b;
}

input:focus,
select:focus {
  outline: 3px solid rgba(13, 92, 138, 0.22);
  border-color: #0d5c8a;
}

button {
  grid-column: 1 / -1;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #0d5c8a;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: #09486d;
}

.alert {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 6px;
}

.error {
  background: #fff1f0;
  border-color: #f2b5b0;
  color: #7f1d1d;
}

.success {
  background: #edf8ef;
  border-color: #acdcb7;
  color: #185b2a;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.admin-link {
  display: grid;
  grid-column: 1 / -1;
  margin-top: 18px;
}

.admin-button {
  min-height: 48px;
  border: 2px solid #0d5c8a;
  border-radius: 6px;
  background: transparent;
  color: #0d5c8a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-button:hover {
  background: #e9f5ff;
  border-color: #09486d;
  color: #09486d;
}
