/* ═══════════════════════════════════════════════════════════════════════════
   hiLina Auth — Sign Up / Sign In split panel + centered card layout
   Source: lina-onboarding-prd.html Screen 1
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base auth page ── */
.hl-auth-page {
  min-height: 100vh;
  background: var(--hl-bg, #E5E9F4);
  margin: 0;
  padding: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Split Panel Layout (Sign Up / Sign In)
   Left (~58%): dark bg, marketing headline, orb, wordmark
   Right (~42%): white bg, form
   ═══════════════════════════════════════════════════════════════════════════ */
.hl-auth-split {
  display: grid;
  grid-template-columns: 58fr 42fr;
  min-height: 100vh;
}

/* ── Left panel (marketing) ── */
.hl-auth-left {
  background: #080C1E;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  overflow: hidden;
}

.hl-auth-left::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,49,255,0.11) 0%, transparent 68%);
  pointer-events: none;
}
.hl-auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,49,255,0.06) 0%, transparent 68%);
  pointer-events: none;
}

.hl-auth-left-wordmark {
  position: absolute;
  top: 36px;
  left: 56px;
}

.hl-auth-headline {
  font-family: var(--hl-font-headline, 'Inter', sans-serif);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 480px;
}
.hl-auth-headline .dim {
  color: rgba(255, 255, 255, 0.45);
}
.hl-auth-headline .cobalt {
  color: #4472FF;
}
.hl-auth-headline .bright {
  color: #FFFFFF;
}

.hl-auth-left-footer {
  position: absolute;
  bottom: 28px;
  left: 56px;
  font-family: var(--hl-font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.30);
}

.hl-auth-left-orb {
  position: absolute;
  bottom: 40px;
  right: 56px;
}

/* ── Right panel (form) ── */
.hl-auth-right {
  background: #FAFBFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  min-height: 100vh;
  position: relative;
}
.hl-auth-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,49,255,0.03) 0%, transparent 55%);
  pointer-events: none;
}

.hl-auth-form-wrap {
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.hl-auth-right-wordmark {
  margin-bottom: 30px;
}

/* ── Tabs (Create account / Sign in) — pill style per prototype ── */
.hl-auth-tabs {
  display: flex;
  gap: 0;
  background: rgba(0, 15, 60, 0.05);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 24px;
}
.hl-auth-tab {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  font-family: var(--hl-font-headline, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 13px;
  color: #9098C0;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
}
.hl-auth-tab:hover {
  color: var(--hl-txt2, #485080);
}
.hl-auth-tab.active {
  background: #fff;
  color: var(--hl-txt, #080C1E);
  box-shadow: 0 1px 3px rgba(0, 10, 60, 0.08), 0 1px 1px rgba(0, 10, 60, 0.04);
}

/* ── Form styling ── */
.hl-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hl-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hl-auth-field .label,
.hl-auth-field label {
  font-family: var(--hl-font-headline, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 12px;
  color: var(--hl-txt2, #485080);
}
.hl-auth-field .input,
.hl-auth-field input[type="text"],
.hl-auth-field input[type="email"],
.hl-auth-field input[type="password"] {
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid rgba(0, 15, 60, 0.1);
  border-radius: 10px;
  font-family: var(--hl-font-headline, 'Inter', sans-serif);
  font-size: 14px;
  color: var(--hl-txt, #080C1E);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.hl-auth-field .input:focus,
.hl-auth-field input:focus {
  border-color: var(--hl-cobalt, #0031FF);
  box-shadow: 0 0 0 3px rgba(0, 49, 255, 0.08);
  outline: none;
}
.hl-auth-field .input::placeholder,
.hl-auth-field input::placeholder {
  color: #C0C5D8;
}

.hl-auth-field-error {
  font-family: var(--hl-font-body, 'DM Sans', sans-serif);
  font-size: 12px;
  color: var(--hl-red, #E8002E);
}

/* ── Checkbox row ── */
.hl-auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hl-font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  color: var(--hl-txt2, #485080);
}
.hl-auth-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--hl-cobalt, #0031FF);
}

/* ── Primary CTA button ── */
.hl-auth-cta {
  width: 100%;
  height: 46px;
  background: var(--hl-cobalt, #0031FF);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-family: var(--hl-font-headline, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0, 49, 255, 0.22);
}
.hl-auth-cta:hover {
  background: var(--hl-cobalt-mid, #2B55FF);
  box-shadow: 0 4px 16px rgba(0, 49, 255, 0.28);
}
.hl-auth-cta:active {
  transform: scale(0.99);
}
.hl-auth-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Divider ── */
.hl-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.hl-auth-divider::before,
.hl-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 15, 60, 0.08);
}
.hl-auth-divider span {
  font-family: var(--hl-font-body, 'DM Sans', sans-serif);
  font-size: 12px;
  color: var(--hl-txtm, #9098C0);
  white-space: nowrap;
}

/* ── Google OAuth button ── */
.hl-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1.5px solid rgba(0, 15, 60, 0.1);
  border-radius: 10px;
  font-family: var(--hl-font-headline, 'Inter', sans-serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--hl-txt, #080C1E);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 0;
}
.hl-auth-google:hover {
  border-color: rgba(0, 15, 60, 0.2);
  background: #F5F6FF;
  color: var(--hl-txt, #080C1E);
}
.hl-auth-google svg {
  flex-shrink: 0;
}

/* ── Legal footer ── */
.hl-auth-legal {
  font-family: var(--hl-font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  color: #B0B5CC;
  text-align: center;
  margin-top: 22px;
  line-height: 1.6;
}
.hl-auth-legal a {
  color: var(--hl-cobalt, #0031FF);
  text-decoration: none;
}
.hl-auth-legal a:hover {
  text-decoration: underline;
}

/* ── Auth footer links ── */
.hl-auth-footer {
  text-align: center;
  margin-top: 16px;
  font-family: var(--hl-font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  color: var(--hl-txtm, #9098C0);
}
.hl-auth-footer a {
  color: var(--hl-cobalt, #0031FF);
  text-decoration: none;
  font-weight: 500;
}
.hl-auth-footer a:hover {
  text-decoration: underline;
}
.hl-auth-footer .separator {
  margin: 0 8px;
  color: rgba(0, 15, 60, 0.15);
}


/* ═══════════════════════════════════════════════════════════════════════════
   Centered Card Layout (password reset, email confirm, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */
.hl-auth-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.hl-auth-card {
  background: var(--hl-surface, #FFFFFF);
  border: 1px solid var(--hl-bdr, rgba(0, 15, 60, 0.08));
  border-radius: var(--hl-radius-card, 16px);
  box-shadow: var(--hl-shadow-card);
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
}

.hl-auth-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.hl-auth-card h1 {
  font-family: var(--hl-font-headline, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 22px;
  color: var(--hl-txt, #080C1E);
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}

.hl-auth-card .auth-subtitle,
.hl-auth-card p.hl-auth-subtitle {
  font-family: var(--hl-font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  color: var(--hl-txt2, #485080);
  line-height: 1.6;
  margin: 0 0 4px;
}

/* ── Error alerts in auth context ── */
.hl-auth-card .alert,
.hl-auth-form .alert {
  font-family: var(--hl-font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: var(--hl-radius-btn, 10px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 840px) {
  .hl-auth-split {
    grid-template-columns: 1fr;
  }
  .hl-auth-left {
    display: none;
  }
  .hl-auth-right {
    min-height: 100vh;
  }
}

@media (max-width: 560px) {
  .hl-auth-right {
    padding: 32px 20px;
  }
  .hl-auth-card {
    padding: 28px 24px;
  }
  .hl-auth-headline {
    font-size: 28px;
  }
}
