/* Login page shell, styled to match the marketing front page.

   Loaded *after* landing.css, which owns the reset, design tokens, fonts,
   header, footer, button, and form-field styles this page reuses.  Only the
   auth-specific layout lives here, so the login page keeps tracking the
   landing design automatically.  It is loaded instead of the app chrome
   (tokens/base/layout/components), never alongside it.
*/

/* Page shell: footer sits at the bottom on short pages. */
.auth-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.auth-body main {
  flex: 1 0 auto;
  display: flex;
}

/* Header: below the landing nav breakpoint only the Contact Us button shows,
   so there is no need for the landing page's JS-driven mobile drawer. */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.auth-nav a:not(.btn) { display: none; }
@media (min-width: 1024px) {
  .auth-nav { gap: 2rem; }
  .auth-nav a:not(.btn) { display: inline-block; }
}
/* The landing header keeps a full-size lockup because its mobile nav collapses
   to a 46px toggle; here the Contact Us button is wider, so both shrink. */
@media (max-width: 640px) {
  .auth-body .brand-lockup img { height: 34px; }
  .auth-nav .btn { padding: 0.5rem 0.9rem; font-size: 0.75rem; }
}

/* Hero-style band, same gradient wash as the landing hero. */
.auth-section {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 88% 8%, var(--gold-glow) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 5% 92%, rgba(228, 192, 117, 0.08) 0%, transparent 60%);
}
@media (min-width: 1024px) { .auth-section { padding: 4rem 0 4.5rem; } }

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .auth-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* Brand column */
.auth-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  color: var(--navy);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.auth-headline .accent { color: var(--gold-deep); }
.auth-sub {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 48ch;
  line-height: 1.55;
}

/* Cover + proof points ride along on wide screens only, so small screens put
   the form within reach instead of scrolling past marketing copy. */
.auth-brand-row {
  display: none;
  gap: 2rem;
  align-items: center;
  margin-top: 2.25rem;
}
@media (min-width: 1024px) { .auth-brand-row { display: flex; } }

.auth-cover {
  flex-shrink: 0;
  width: 168px;
  border-radius: var(--radius);
  background: var(--white);
  transform: rotate(-3deg);
  box-shadow:
    0 24px 48px -18px rgba(11, 31, 53, 0.25),
    0 10px 20px -8px rgba(11, 31, 53, 0.15),
    0 0 0 1px rgba(11, 31, 53, 0.06);
}

.auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.auth-points li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.auth-points li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-glow);
  color: var(--gold-deep);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-points strong { color: var(--navy); font-weight: 700; }

.auth-trust {
  display: none;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
@media (min-width: 1024px) { .auth-trust { display: block; } }
.auth-trust strong {
  color: var(--navy);
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Form card, built like the landing lead form */
.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
}
@media (min-width: 768px) { .auth-card { padding: 2.25rem; } }

/* Signup asks for more than login does, so it gets a wider card and can
   afford two-up rows. */
.auth-card-wide { max-width: 560px; }

.auth-card-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

/* Section heads inside a form card */
.auth-fieldset-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.auth-fieldset-title + .form-row { margin-bottom: 1rem; }
.form-row + .auth-fieldset-title { margin-top: 1.5rem; }

.field-optional {
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: none;
}

.auth-form-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 0.9rem;
  text-align: center;
}

/* Post-submit confirmation, shown in place of the form */
.auth-success { text-align: center; }
.auth-success .auth-card-hint { margin-bottom: 1.75rem; }
.auth-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 2px solid var(--gold);
  color: var(--gold-deep);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.auth-card-hint {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.auth-alert {
  border: 1px solid;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}
.auth-alert.is-error {
  background: #FBF0EE;
  border-color: rgba(178, 34, 34, 0.28);
  color: #8C2F2A;
}
.auth-alert.is-ok {
  background: #EEF4EC;
  border-color: rgba(63, 107, 58, 0.28);
  color: #3F6B3A;
}

/* Label row lets "Forgot password?" sit opposite the field label. */
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.field-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.field-link:hover { color: var(--navy); text-decoration: underline; }

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-alt {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.auth-alt a { font-weight: 700; color: var(--gold-deep); }
.auth-alt a:hover { color: var(--navy); text-decoration: underline; }

/* Slim version of the landing footer */
.auth-footer { padding: 1.75rem 0; }
.auth-footer .footer-legal {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
