/* ==========================================================================
   LLA Design System — Auth pages (login / forgot / reset password)
   ========================================================================== */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
}
@media (min-width: 900px) {
  .auth-shell { flex-direction: row; }
}

.auth-side {
  display: none;
  flex: 1;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 48px;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .auth-side { display: flex; } }
.auth-side .brand { display: flex; align-items: center; gap: 12px; }
.auth-side .brand img { width: 52px; height: 52px; border-radius: 50%; }
.auth-side .brand .name { font-size: 17px; font-weight: 800; }
.auth-side .brand .tagline { font-size: 11.5px; color: rgba(255,255,255,.7); }
.auth-side .headline { font-size: 28px; font-weight: 800; line-height: 1.3; max-width: 420px; }
.auth-side .sub { color: rgba(255,255,255,.75); font-size: 13.5px; max-width: 400px; margin-top: 10px; }
.auth-side .quote { font-style: italic; color: rgba(255,255,255,.85); font-size: 13px; border-left: 3px solid var(--amber-500); padding-left: 14px; }

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-card .mobile-brand img { width: 42px; height: 42px; border-radius: 50%; }
.auth-card .mobile-brand .name { font-weight: 800; color: var(--navy-900); font-size: 15px; }
@media (min-width: 900px) { .auth-card .mobile-brand { display: none; } }

.auth-card h1 { font-size: 22px; }
.auth-card .lead { color: var(--text-muted); font-size: 13px; margin-bottom: 26px; }

.auth-card .form-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; margin-bottom: 18px; flex-wrap: wrap; gap: 8px;
}

.auth-card .signup-hint { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 22px; }

.demo-hint {
  margin-top: 20px; padding: 12px 14px; background: var(--blue-50); border-radius: var(--radius-md);
  font-size: 11.5px; color: var(--navy-800); line-height: 1.6;
}
.demo-hint b { color: var(--navy-900); }

.error-page {
  text-align: center; max-width: 420px; margin: 0 auto; padding: 60px 20px;
}
.error-page .code { font-size: 60px; font-weight: 800; color: var(--navy-900); }

/* ================================================================
   Item 29 — sign in, forgotten password, reset
   From mockups/Frontend/Login: the welcome panel on the left, the form in a
   card on the right, inside the site's own header and footer.
   ================================================================ */
.auth-page {
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(143, 195, 243, .3), transparent 62%),
    linear-gradient(135deg, #F4F9FE 0%, #EAF3FD 55%, #DFEDFB 100%);
  padding: 46px 0 60px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 44px;
  align-items: center;
}

/* ---- the welcome panel ---- */
.auth-welcome h1 {
  font-size: var(--fs-h1);
  color: var(--navy);
  margin-bottom: 14px;
}
.auth-welcome-lede {
  font-size: var(--fs-md);
  color: var(--body);
  max-width: 44ch;
  margin-bottom: 30px;
}

.auth-benefits { display: grid; gap: 20px; margin-bottom: 28px; }
.auth-benefits li { display: flex; align-items: center; gap: 14px; }
.auth-benefits strong { display: block; font-size: calc(15px * var(--fs-scale)); color: var(--navy); font-weight: 700; }
.auth-benefits span span { font-size: calc(13px * var(--fs-scale)); color: var(--body); }

.auth-benefit-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: calc(19px * var(--fs-scale));
  color: #fff;
}
.auth-benefit-icon.tone-0 { background: var(--navy); }
.auth-benefit-icon.tone-1 { background: var(--gold); color: var(--navy); }
.auth-benefit-icon.tone-2 { background: var(--blue); }
.auth-benefit-icon.tone-3 { background: var(--blue-500); }

.auth-script {
  font-family: var(--script);
  font-size: calc(30px * var(--fs-scale));
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
}

/* ---- the card ---- */
.auth-panel { display: flex; justify-content: center; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 32px 30px;
}
.auth-card-crest { text-align: center; margin-bottom: 18px; }
.auth-card-crest img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.auth-card-crest span {
  display: block;
  font-size: calc(15px * var(--fs-scale));
  font-weight: 800; color: var(--navy); letter-spacing: .01em;
}
.auth-card h1 { font-size: calc(24px * var(--fs-scale)); text-align: center; margin-bottom: 6px; color: var(--navy); }
.auth-card .lead { text-align: center; color: var(--body); font-size: calc(14px * var(--fs-scale)); margin-bottom: 24px; }
.auth-card .form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; font-size: calc(13.5px * var(--fs-scale)); }
.auth-card .btn-block { width: 100%; justify-content: center; min-height: 48px; }

.auth-help {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 14px 16px;
  background: var(--blue-50);
  border-radius: var(--radius);
}
.auth-help-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: calc(16px * var(--fs-scale));
}
.auth-help strong { display: block; font-size: calc(13.5px * var(--fs-scale)); color: var(--navy); }
.auth-help span span { font-size: calc(12.5px * var(--fs-scale)); color: var(--body); }
.auth-help a { margin-left: auto; color: var(--navy); font-size: calc(18px * var(--fs-scale)); }

/* The crest shown above the form on a phone, where the welcome panel is gone. */
.auth-card .mobile-brand { display: none; }

@media (max-width: 920px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .auth-welcome { text-align: center; }
  .auth-welcome-lede { margin-left: auto; margin-right: auto; }
  .auth-benefits { max-width: 420px; margin-left: auto; margin-right: auto; text-align: left; }
  .auth-script { display: none; }
}

@media (max-width: 560px) {
  .auth-page { padding: 28px 0 40px; }
  .auth-card { padding: 26px 20px; border-radius: var(--radius-lg); }
  .auth-benefits { gap: 14px; }
  .auth-benefit-icon { width: 42px; height: 42px; }
}
