/* === Auth pages: two-column split design === */
:root {
  --auth-primary: #0D47A1;
  --auth-primary-light: #1565C0;
  --auth-ink: #0E1B33;
  --auth-muted: #64748B;
  --auth-line: #E2E8F0;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(80% 60% at 92% 0%, rgba(21, 101, 192, 0.14) 0%, transparent 60%),
    radial-gradient(70% 50% at 4% 100%, rgba(255, 179, 0, 0.10) 0%, transparent 55%),
    linear-gradient(135deg, #E8F0FE 0%, #F6F9FF 100%);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-shell {
  display: grid;
  grid-template-columns: 55% 45%;
  width: 100%;
  max-width: 1000px;
  min-height: 620px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(13, 71, 161, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---- Visual side ---- */
.auth-visual {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 42px;
  color: #fff;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 12, 30, 0.35) 0%, rgba(3, 12, 30, 0.22) 45%, rgba(3, 12, 30, 0.82) 100%);
}
.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 18% 0%, rgba(21, 101, 192, 0.4) 0%, transparent 55%);
}
.auth-visual > * { position: relative; z-index: 1; }

.auth-visual-brand { display: flex; align-items: center; gap: 12px; }
.auth-visual-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.auth-visual-brand span { font-weight: 800; font-size: 16px; letter-spacing: -0.2px; }

.auth-visual-body h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}
.auth-visual-body h2 em { font-style: normal; color: #FFC107; }
.auth-visual-body p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 340px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.auth-features { display: grid; gap: 14px; }
.auth-feature { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.auth-feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: #FFC107;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-feature-icon svg { width: 15px; height: 15px; }

.auth-visual-footer { font-size: 12px; color: rgba(255, 255, 255, 0.62); }

/* ---- Form side ---- */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 44px; }
.auth-form { width: 100%; max-width: 380px; }

.auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-mobile-brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.auth-mobile-brand span { font-size: 15px; font-weight: 800; color: var(--auth-primary); }

.auth-heading h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; color: var(--auth-ink); margin-bottom: 6px; }
.auth-heading p { font-size: 14px; color: var(--auth-muted); margin-bottom: 26px; line-height: 1.6; }

.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
}
.auth-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--auth-line);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: #0F172A;
  background: #F8FAFC;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.auth-form .form-control:focus {
  border-color: var(--auth-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.12);
}
.auth-form .form-control::placeholder { color: #94A3B8; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 20px;
  font-size: 13px;
}
.auth-row a { color: var(--auth-primary); font-weight: 600; }

.auth-form .btn-login {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.32);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.auth-form .btn-login:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(13, 71, 161, 0.4); filter: brightness(1.05); }
.auth-form .btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.auth-form .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin 0.8s linear infinite;
}
.auth-form .btn-loading .btn-text { opacity: 0.85; }
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-switch { text-align: center; font-size: 13px; color: var(--auth-muted); margin-top: 22px; }
.auth-switch a { color: var(--auth-primary); font-weight: 700; }

.auth-form .help-link {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-primary);
  margin-top: 18px;
}

.auth-copyright { text-align: center; font-size: 12px; color: #94A3B8; margin-top: 26px; }

.auth-form .alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-form .alert-danger { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.auth-form .alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }

@media (max-width: 900px) {
  .auth-page { padding: 16px; }
  .auth-shell { grid-template-columns: 1fr; min-height: auto; max-width: 460px; }
  .auth-visual { display: none; }
  .auth-panel { padding: 44px 28px; }
  .auth-mobile-brand { display: flex; }
}

@media (max-width: 480px) {
  .auth-page { padding: 0; }
  .auth-shell { min-height: 100vh; border-radius: 0; }
  .auth-panel { padding: 36px 20px; }
  .auth-heading h1 { font-size: 24px; }
  .auth-mobile-brand span { font-size: 14px; }
}
