/* ============================================================
   Blue Chip Education Consultants
   Enterprise Auth Pages — Login & Register
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand palette */
  --bc-navy:         #040E21;
  --bc-navy-2:       #071428;
  --bc-navy-3:       #0B1D38;
  --bc-navy-4:       #122345;
  --bc-blue:         #0EA5E9;
  --bc-blue-2:       #38BDF8;
  --bc-blue-3:       #7DD3FC;
  --bc-blue-dark:    #0369A1;
  --bc-gold:         #F59E0B;
  --bc-gold-light:   #FCD34D;

  /* Neutrals */
  --bc-white:        #FFFFFF;
  --bc-gray-50:      #F8FAFC;
  --bc-gray-100:     #F1F5F9;
  --bc-gray-200:     #E2E8F0;
  --bc-gray-300:     #CBD5E1;
  --bc-gray-400:     #94A3B8;
  --bc-gray-500:     #64748B;
  --bc-gray-600:     #475569;
  --bc-gray-700:     #334155;
  --bc-gray-800:     #1E293B;
  --bc-gray-900:     #0F172A;

  /* Semantic */
  --bc-success:      #10B981;
  --bc-danger:       #EF4444;
  --bc-warning:      #F59E0B;

  /* Motion */
  --ease-smooth:     cubic-bezier(.4,0,.2,1);
  --ease-spring:     cubic-bezier(.34,1.56,.64,1);
  --duration-fast:   150ms;
  --duration-base:   300ms;
  --duration-slow:   600ms;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bc-gray-50);
  min-height: 100vh;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Auth Layout — Split Panel ──────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Brand Panel (left) ─────────────────────────────────────── */
.auth-brand {
  position: relative;
  background: var(--bc-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 3.5rem;
  overflow: hidden;
}

/* Animated mesh background */
.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(14,165,233,.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 90% 80%, rgba(14,165,233,.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(3,105,161,.15) 0%, transparent 60%);
  animation: meshShift 12s ease-in-out infinite alternate;
}
@keyframes meshShift {
  from { opacity: .8; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.05); }
}

/* Grid lines decoration */
.auth-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Floating orbs */
.brand-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.brand-orb-1 {
  width: 320px; height: 320px;
  top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(14,165,233,.18) 0%, transparent 70%);
  animation: orbFloat1 8s ease-in-out infinite;
}
.brand-orb-2 {
  width: 200px; height: 200px;
  bottom: 5%; left: -60px;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  animation: orbFloat2 10s ease-in-out infinite;
}
.brand-orb-3 {
  width: 140px; height: 140px;
  top: 55%; right: 10%;
  background: radial-gradient(circle, rgba(56,189,248,.15) 0%, transparent 70%);
  animation: orbFloat3 7s ease-in-out infinite;
}
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-20px,20px);} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(15px,-15px);} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0);} 50%{transform:translate(-10px,10px);} }

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

/* Brand logo area */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.brand-logo-img {
  height: 52px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 6px 10px;
  backdrop-filter: blur(10px);
}
.brand-logo-text {
  display: flex;
  flex-direction: column;
}
.brand-logo-name {
  font-size: .95rem;
  font-weight: 800;
  color: var(--bc-white);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.brand-logo-sub {
  font-size: .7rem;
  color: var(--bc-blue-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Headline */
.brand-headline {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--bc-white);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.brand-headline .accent {
  background: linear-gradient(135deg, var(--bc-blue-2), var(--bc-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tagline {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 360px;
}

/* Feature pills */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 3rem;
}
.brand-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: all var(--duration-base) var(--ease-smooth);
  animation: featureSlide .6s var(--ease-smooth) both;
}
.brand-feature:nth-child(1) { animation-delay: .1s; }
.brand-feature:nth-child(2) { animation-delay: .2s; }
.brand-feature:nth-child(3) { animation-delay: .3s; }
@keyframes featureSlide {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.brand-feature:hover {
  background: rgba(14,165,233,.12);
  border-color: rgba(14,165,233,.25);
  transform: translateX(4px);
}
.brand-feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bc-blue), var(--bc-blue-dark));
  display: grid; place-items: center;
  font-size: .85rem; color: var(--bc-white);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14,165,233,.35);
}
.brand-feature-text {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* Stats strip */
.brand-stats {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.brand-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bc-white);
  line-height: 1;
  letter-spacing: -.02em;
}
.brand-stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .2rem;
}

/* ── Form Panel (right) ─────────────────────────────────────── */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem;
  background: var(--bc-gray-50);
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 440px;
  animation: formReveal .6s var(--ease-smooth) both;
}
@keyframes formReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile logo (hidden on desktop) */
.auth-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-mobile-logo img {
  height: 48px;
  margin: 0 auto .5rem;
}
.auth-mobile-logo h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bc-navy);
}

/* Form header */
.auth-form-header {
  margin-bottom: 2rem;
}
.auth-form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--bc-blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .65rem;
}
.auth-form-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--bc-blue);
  border-radius: 1px;
}
.auth-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bc-navy);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.auth-form-subtitle {
  font-size: .875rem;
  color: var(--bc-gray-500);
  line-height: 1.6;
}

/* ── Floating Input Groups ──────────────────────────────────── */
.input-group-bc {
  position: relative;
  margin-bottom: 1.25rem;
}
.input-group-bc label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--bc-gray-600);
  margin-bottom: .4rem;
  transition: color var(--duration-fast);
}
.input-group-bc:focus-within label {
  color: var(--bc-blue);
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--bc-gray-400);
  font-size: .875rem;
  pointer-events: none;
  transition: color var(--duration-fast);
  z-index: 1;
}
.input-group-bc:focus-within .input-icon {
  color: var(--bc-blue);
}
.bc-input {
  width: 100%;
  padding: .8rem 1rem .8rem 2.75rem;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  color: var(--bc-gray-800);
  background: var(--bc-white);
  border: 1.5px solid var(--bc-gray-200);
  border-radius: 10px;
  outline: none;
  transition: all var(--duration-base) var(--ease-smooth);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.bc-input::placeholder { color: var(--bc-gray-400); }
.bc-input:hover { border-color: var(--bc-gray-300); }
.bc-input:focus {
  border-color: var(--bc-blue);
  box-shadow: 0 0 0 4px rgba(14,165,233,.1), 0 1px 3px rgba(0,0,0,.04);
}
.bc-input.is-error {
  border-color: var(--bc-danger);
  box-shadow: 0 0 0 4px rgba(239,68,68,.08);
}
.bc-input.no-icon { padding-left: 1rem; }

/* Password toggle */
.input-toggle {
  position: absolute;
  right: 0;
  height: 100%;
  width: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  color: var(--bc-gray-400);
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  transition: color var(--duration-fast);
}
.input-toggle:hover { color: var(--bc-blue); }

/* Input name row */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.bc-alert {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  animation: alertSlide .3s var(--ease-smooth);
}
@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bc-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}
.bc-alert-error .bc-alert-icon { color: var(--bc-danger); margin-top: 1px; }
.bc-alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #065F46;
}
.bc-alert-success .bc-alert-icon { color: var(--bc-success); margin-top: 1px; }
.bc-alert-messages { display: flex; flex-direction: column; gap: .2rem; }

/* ── Password Strength ──────────────────────────────────────── */
.strength-meter {
  margin-top: .5rem;
}
.strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: .3rem;
}
.strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--bc-gray-200);
  transition: background var(--duration-base) var(--ease-smooth);
}
.strength-bar.active-weak   { background: var(--bc-danger); }
.strength-bar.active-fair   { background: var(--bc-warning); }
.strength-bar.active-good   { background: var(--bc-blue); }
.strength-bar.active-strong { background: var(--bc-success); }
.strength-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--bc-gray-400);
  transition: color var(--duration-base);
}

/* ── Submit Button ──────────────────────────────────────────── */
.btn-bc-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .9rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--bc-white);
  background: linear-gradient(135deg, var(--bc-blue) 0%, var(--bc-blue-dark) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  box-shadow: 0 4px 16px rgba(14,165,233,.35);
  position: relative;
  overflow: hidden;
  margin-top: .5rem;
}
.btn-bc-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.btn-bc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,.45);
}
.btn-bc-primary:hover::before { opacity: 1; }
.btn-bc-primary:active { transform: translateY(0); }
.btn-bc-primary:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-bc-primary .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--bc-white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth Footer Link ───────────────────────────────────────── */
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .82rem;
  color: var(--bc-gray-500);
}
.auth-switch a {
  color: var(--bc-blue);
  font-weight: 700;
  transition: color var(--duration-fast);
}
.auth-switch a:hover { color: var(--bc-blue-dark); text-decoration: underline; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--bc-gray-400);
  font-size: .75rem;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bc-gray-200);
}

/* ── Terms checkbox ─────────────────────────────────────────── */
.bc-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .75rem 0;
  cursor: pointer;
}
.bc-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  border-radius: 4px;
  accent-color: var(--bc-blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.bc-checkbox-label {
  font-size: .78rem;
  color: var(--bc-gray-500);
  line-height: 1.5;
}
.bc-checkbox-label a { color: var(--bc-blue); font-weight: 600; }

/* ── Trust badges ───────────────────────────────────────────── */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bc-gray-200);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 600;
  color: var(--bc-gray-400);
}
.trust-badge i { font-size: .8rem; color: var(--bc-success); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .brand-headline { font-size: 2rem; }
  .auth-brand { padding: 2.5rem 2.5rem; }
}

@media (max-width: 768px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    display: none;
  }
  .auth-form-panel {
    padding: 2rem 1.25rem;
    justify-content: flex-start;
    padding-top: 2.5rem;
  }
  .auth-mobile-logo {
    display: block;
  }
  .auth-form-wrap {
    max-width: 100%;
  }
  .auth-form-title {
    font-size: 1.5rem;
  }
  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .auth-form-panel { padding: 1.5rem 1rem; }
  .auth-form-title { font-size: 1.35rem; }
  .trust-badges { flex-wrap: wrap; justify-content: center; gap: .75rem; }
}
