/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Bluevella Palette */
  --navy:          #0A1F63;
  --navy-dark:     #061547;
  --navy-deep:     #07194F;
  --navy-secondary:#0A2368;
  --silver:        #AEB8D0;
  --silver-light:  #C8D1E6;
  --bg-soft:       #FAFBFD;
  --bg-secondary:  #F3F5FA;
  --text-primary:  #1A2238;
  --text-secondary:#5B657A;
  --white:         #FFFFFF;
  --error:         #c0392b;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(10,31,99,0.07), 0 1px 2px rgba(10,31,99,0.04);
  --shadow-md: 0 4px 18px rgba(10,31,99,0.10), 0 2px 6px rgba(10,31,99,0.05);
  --shadow-lg: 0 14px 44px rgba(10,31,99,0.13), 0 4px 14px rgba(10,31,99,0.07);
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

/* ===== LAYOUT ===== */
.login-page .layout {
  display: flex;
  min-height: 100vh;
}

/* ===== LEFT PANEL ===== */
.login-page .panel-left {
  width: 46%;
  min-width: 340px;
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-secondary) 100%);
  display: flex;
  flex-direction: column;
  padding: 36px 52px 32px;
  position: relative;
  overflow: hidden;
}

.login-page .panel-left::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -100px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174,184,208,0.10) 0%, transparent 68%);
  pointer-events: none;
}

.login-page .panel-left::after {
  content: '';
  position: absolute;
  bottom: -90px;
  left: -70px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174,184,208,0.07) 0%, transparent 68%);
  pointer-events: none;
}

/* Brand logo */
.login-page .brand {
  display: flex;
  align-items: center;
}

.login-page .brand-logo {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Mobile logo — invert white to navy */
.login-page .brand-logo--dark {
  height: 32px;
  filter: brightness(0) saturate(100%) invert(11%) sepia(55%) saturate(1200%) hue-rotate(205deg) brightness(85%) contrast(110%);
}

/* Panel content */
.login-page .panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 40px;
}

.login-page .panel-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 22px;
}

.login-page .panel-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
}

.login-page .panel-headline em {
  font-style: italic;
  color: rgba(255,255,255,0.60);
}

.login-page .panel-sub {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  max-width: 340px;
  margin-bottom: 44px;
}

/* Trust row */
.login-page .trust-row {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.login-page .trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.01em;
}

.login-page .trust-dot {
  width: 16px;
  height: 1px;
  background: var(--silver);
  opacity: 0.55;
  flex-shrink: 0;
  border-radius: 1px;
}

/* Panel footer */
.login-page .panel-footer {
  font-size: 10.5px;
  color: rgba(255,255,255,0.22);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ===== RIGHT PANEL ===== */
.login-page .panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  padding: 40px 24px;
}

.login-page .form-card {
  width: 100%;
  max-width: 400px;
}

/* Mobile brand — hidden on desktop */
.login-page .mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}

/* Form headings */
.login-page .form-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.login-page .form-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 34px;
  line-height: 1.5;
}

/* Form body */
.login-page .form-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Field */
.login-page .field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-page .field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-page .field-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  cursor: pointer;
}

.login-page .forgot-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.login-page .forgot-link:hover {
  color: var(--navy);
}

.login-page .field-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--silver-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.login-page .field-input::placeholder {
  color: var(--silver);
}

.login-page .field-input:hover {
  border-color: var(--silver);
}

.login-page .field-input:focus {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,31,99,0.08);
}

/* Password field */
.login-page .password-wrapper {
  position: relative;
}

.login-page .field-input--password {
  padding-right: 44px;
}

.login-page .eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
}

.login-page .eye-btn:hover {
  color: var(--text-primary);
}

.login-page .eye-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Primary button */
.login-page .btn-primary {
  width: 100%;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  box-shadow: 0 2px 10px rgba(10,31,99,0.20);
  margin-top: 4px;
}

.login-page .btn-primary:hover {
  background: var(--navy-dark);
  box-shadow: 0 4px 18px rgba(10,31,99,0.28);
}

.login-page .btn-primary:active {
  transform: translateY(1px);
  box-shadow: none;
}

.login-page .btn-primary:focus-visible {
  outline: 2px solid var(--navy-secondary);
  outline-offset: 3px;
}

/* Create account */
.login-page .create-account {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.login-page .create-account a {
  color: var(--navy);
  font-weight: 500;
  transition: color 0.15s;
  border-bottom: 1px solid var(--silver-light);
  padding-bottom: 1px;
}

.login-page .create-account a:hover {
  color: var(--navy-dark);
  border-bottom-color: var(--silver);
}

/* Footer links */
.login-page .form-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.login-page .form-footer-links a {
  font-size: 11px;
  color: var(--silver);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.login-page .form-footer-links a:hover {
  color: var(--text-secondary);
}

.login-page .footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--silver-light);
  flex-shrink: 0;
}

/* ===== MOBILE — stack to card ===== */
@media (max-width: 768px) {
  .login-page .layout {
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 100%);
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
  }

  .login-page .panel-left {
    display: none;
  }

  .login-page .panel-right {
    background: transparent;
    padding: 0;
    width: 100%;
    max-width: 420px;
  }

  .login-page .form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px 28px;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
  }

  .login-page .mobile-brand {
    display: flex;
  }

  .login-page .form-title {
    text-align: center;
    font-size: 24px;
  }

  .login-page .form-sub {
    text-align: center;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}