/* Auth pages (sign-in, sign-up, forgot/reset password, check-email) and
   shared elements. Reuses color variables from style.css. Layout is a
   single centered card on a dark page so it looks like a product sign-in
   screen instead of a marketing form. */

.auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at top, rgba(34, 211, 238, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0a1018 0%, #0f1524 100%);
  color: var(--text-hi, #e5e9f0);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Brand lockup at the top of every auth screen — mirrors the landing
   page header so users see the same logo + wordmark across the whole
   funnel. Lighthouse PNG with a soft cyan glow + split wordmark
   (white "Edge", cyan "Beacon"). */
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  align-self: center;
  color: var(--text-hi, #e5e9f0);
}
.auth-brand-logo {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.35));
}
.auth-brand-wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.auth-brand-edge   { color: var(--text-hi, #e5e9f0); }
.auth-brand-beacon { color: #22d3ee; }

.auth-card {
  background: linear-gradient(180deg, #161d2e 0%, #0f1524 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.auth-h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.auth-sub {
  margin: 0 0 24px 0;
  color: var(--text-lo, #93a4bf);
  font-size: 14px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-lo, #93a4bf);
}
.auth-label input {
  background: rgba(15, 20, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-hi, #e5e9f0);
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-label input:focus {
  outline: none;
  border-color: #22d3ee;
  background: rgba(15, 20, 28, 0.9);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.auth-hint {
  font-size: 11.5px;
  color: var(--text-lo, #93a4bf);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 2px;
}
.auth-hint-block {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-md, #cbd5e1);
  line-height: 1.4;
  cursor: pointer;
  padding: 2px 0;
}
.auth-check input {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #22d3ee;
  width: 16px;
  height: 16px;
}

.auth-submit {
  margin-top: 8px;
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5b7 100%);
  border: 0;
  border-radius: 8px;
  color: #051014;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 20px -6px rgba(34, 211, 238, 0.4);
}
.auth-submit:hover:not(:disabled) {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px -6px rgba(34, 211, 238, 0.55);
}
.auth-submit:active:not(:disabled) {
  transform: translateY(1px);
}
.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Ghost variant for secondary actions (e.g. "Sign out" on the trial-ended
   page where we don't want a bright cyan CTA pulling focus). */
.auth-submit-ghost {
  background: transparent;
  color: var(--text-md, #cbd5e1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}
.auth-submit-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

/* Resend-confirmation block on the check-email page — slim padded panel
   above the "back to sign in" link so the resend CTA is obvious without
   competing with the primary "check your inbox" message. */
.auth-resend {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.auth-resend p {
  margin: 0 0 12px 0;
  color: var(--text-lo, #93a4bf);
  font-size: 13px;
  line-height: 1.5;
}

.auth-links {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-lo, #93a4bf);
  text-align: center;
  line-height: 1.7;
}
.auth-links a {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 600;
}
.auth-links a:hover { text-decoration: underline; }
.auth-link-sep { opacity: 0.4; padding: 0 6px; }

.auth-flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.auth-flash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid transparent;
}
.auth-flash-error {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
  color: #fca5a5;
}
.auth-flash-info {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.3);
  color: #a5f3fc;
}

.auth-footer {
  text-align: center;
  color: var(--text-lo, #93a4bf);
  font-size: 11.5px;
  line-height: 1.5;
}
.auth-footer p { margin: 0 0 6px 0; }
.auth-footer-legal {
  opacity: 0.8;
  font-size: 11px;
}
.auth-footer-legal b { color: var(--text-md, #cbd5e1); }
