/* Shared Split-Screen Indigo & Clean White Auth Stylesheet */
:root {
  --bg-page: #F8FAFC;
  --bg-midnight: #090D16;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #818CF8;
  --accent: #F97316;
  --ink: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--ink);
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
}

/* Left Velvet Indigo Showcase (Zero clipart boxes!) */
.auth-brand-pane {
  background:
    radial-gradient(circle at 80% 18%, rgba(79, 70, 229, 0.34) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(249, 115, 22, 0.16) 0%, transparent 45%),
    linear-gradient(155deg, #090D16 0%, #131B36 100%);
  color: #F8FAFC;
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-logo-link img {
  height: 36px;
  width: auto;
  display: block;
}

.auth-brand-body {
  max-width: 440px;
  margin: 40px 0;
}

.auth-social-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 24px;
}

.auth-avatars {
  display: flex;
  align-items: center;
}

.auth-avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0F172A;
  margin-left: -8px;
}

.auth-avatars img:first-child { margin-left: 0; }

.auth-brand-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.auth-brand-h1 span {
  color: #A5B4FC;
}

.auth-brand-desc {
  color: #CBD5E1;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.auth-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-hl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #E2E8F0;
}

.auth-hl-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.35);
  border: 1px solid rgba(165, 180, 252, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #A5B4FC;
  flex-shrink: 0;
}

.auth-brand-foot {
  font-size: 0.82rem;
  color: #94A3B8;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right Crisp White Form Canvas */
.auth-form-pane {
  background: var(--bg-page);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.auth-top-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 440px;
  width: 100%;
  margin: 0 auto 24px;
}

.auth-mobile-brand { display: none; }
.auth-mobile-brand img { height: 30px; width: auto; }

.auth-nav-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.16s, background 0.16s;
}

.auth-nav-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.auth-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #EEF2FF;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--ink);
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap i.field-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 40px 13px 42px;
  color: var(--ink);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.input-wrap input:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
}

.pwd-toggle:hover { color: var(--ink); }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.84rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.forgot-link:hover { text-decoration: underline; }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  border: none;
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
  transition: transform 0.16s, box-shadow 0.16s;
  text-decoration: none;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.auth-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 10px;
}

.auth-alert.error {
  display: flex;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}

.auth-alert.success {
  display: flex;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.auth-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.logged-card { text-align: center; display: none; }
.logged-avatar {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  border: 2px solid #E0E7FF;
  margin: 0 auto 14px;
  object-fit: cover;
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-pane { display: none; }
  .auth-mobile-brand { display: inline-flex; align-items: center; }
}
