:root {
  --auth-bg: #eef2f7;
  --auth-brand: #1f4e79;
  --auth-brand-light: #2e75b6;
  --auth-ink: #1f2933;
  --auth-muted: #6b7280;
  --auth-line: #e3e8ef;
  --auth-danger: #c0392b;
  --auth-success: #2e7d32;
  --auth-radius: 12px;
  --auth-shadow: 0 18px 50px rgba(31, 78, 121, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.auth-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--auth-ink);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(46, 117, 182, 0.18), transparent),
    var(--auth-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  padding: 36px 32px 32px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--auth-brand);
  letter-spacing: -0.02em;
}

.auth-brand p {
  margin: 0;
  font-size: 14px;
  color: var(--auth-muted);
}

.auth-message {
  min-height: 1.25em;
  margin: 0 0 16px;
  font-size: 13.5px;
  text-align: center;
}

.auth-message.is-error { color: var(--auth-danger); }
.auth-message.is-info  { color: var(--auth-muted); }
.auth-message.is-ok    { color: var(--auth-success); }

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #46566b;
}

.auth-field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  font-size: 15px;
  color: var(--auth-ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--auth-brand-light);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.14);
}

.auth-field input.code-input {
  font-size: 22px;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: var(--auth-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.auth-submit:hover:not(:disabled) {
  background: #163a5c;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
}

.auth-footer a {
  color: var(--auth-brand-light);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 440px) {
  .auth-card {
    padding: 28px 22px 24px;
  }
}
