/* Shared Wordflow account pages. Keep the public site's red palette in one place. */
body.auth-page {
  --accent: #b91c1c;
  --accent-hover: #991b1b;
  --accent-press: #7f1d1d;
  --accent-ink: #7f1d1d;
  --accent-soft: #fff1f2;
  --accent-line: #fecdd3;
  --bg: #fffafa;
  --text: #251316;
  --text-soft: #49383b;
  --muted: #75686b;
  --border: #f0dddd;
  --border-strong: #ddc9cc;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }

.auth-page .auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 52px 20px;
  background:
    radial-gradient(ellipse at 8% 8%, rgba(251, 113, 133, .18), transparent 42%),
    radial-gradient(ellipse at 96% 92%, rgba(127, 29, 29, .10), transparent 42%),
    #fffafa;
}

.auth-page .auth-card {
  width: min(100%, 460px);
  padding: 38px 40px 30px;
  background: #fff !important;
  border: 1px solid #f0dddd !important;
  border-top: 4px solid var(--accent) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(69, 10, 10, .09) !important;
  backdrop-filter: none;
}

.auth-page .auth-card:hover {
  box-shadow: 0 18px 48px rgba(69, 10, 10, .09) !important;
}

.auth-page .auth-logo {
  display: block;
  width: 176px;
  height: auto;
  margin: 0 auto 27px;
  filter: none;
  opacity: 1;
}

.auth-page .auth-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 5vw, 29px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
  text-align: center;
}

.auth-page .auth-sub {
  margin: 9px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.auth-page .auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.auth-page .auth-form .form-label {
  display: block;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.auth-page .auth-form .form-control {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 15px;
  background: #fff !important;
  border-color: var(--border-strong) !important;
  border-radius: 9px !important;
  box-shadow: none;
}

.auth-page .auth-form .form-control::placeholder {
  color: #9b8d90;
}

.auth-page .auth-form .form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, .13) !important;
}

.auth-page .auth-form .btn-primary {
  width: 100%;
  min-height: 48px;
  margin: 4px 0 0;
  padding: 11px 16px;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 15px rgba(185, 28, 28, .2) !important;
}

.auth-page .auth-form .btn-primary:hover {
  background: linear-gradient(135deg, #991b1b, #5b1420) !important;
  box-shadow: 0 8px 20px rgba(127, 29, 29, .24) !important;
}

.auth-page .auth-form .btn-primary:disabled {
  cursor: wait;
  opacity: .65;
}

.auth-page .auth-message {
  margin: 0;
  padding: 11px 13px;
  color: #8b1b28;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-page .auth-message[hidden] { display: none; }

.auth-page .auth-message-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.auth-page .auth-hint {
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-page a {
  color: var(--accent-ink);
  font-weight: 600;
}

.auth-page a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.auth-page .auth-aux {
  margin: -4px 0 0;
  font-size: 13px;
  text-align: right;
}

.auth-page .auth-foot {
  margin: 25px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.auth-page .auth-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #6b3138;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-page .auth-note strong { font-weight: 600; }

.auth-page .auth-captcha { min-width: 0; overflow-x: auto; }

.auth-page .auth-back { margin: 0; text-align: center; font-size: 13px; }

.auth-page :is(a, button, input):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .auth-page .auth-wrap { padding: 24px 14px; }
  .auth-page .auth-card { padding: 32px 22px 26px; }
  .auth-page .auth-logo { width: 158px; margin-bottom: 23px; }
}
