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

:root {
  --blue-deep: #0C447C;
  --blue-mid:  #185FA5;
  --blue-light:#378ADD;
  --blue-pale: #E6F1FB;
  --teal:      #0F6E56;
  --teal-light:#E1F5EE;
  --teal-mid:  #1D9E75;
  --gray-900:  #1a1a1a;
  --gray-700:  #444;
  --gray-500:  #6b7280;
  --gray-300:  #d1d5db;
  --gray-100:  #f3f4f6;
  --white:     #ffffff;
  --danger:    #c0392b;
  --danger-bg: #fdf2f2;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--gray-100);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ── SPLIT LAYOUT ── */
.auth-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Brand panel */
.auth-brand {
  width: 42%;
  background: var(--blue-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.auth-brand::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.auth-brand::after {
  content: '';
  position: absolute;
  left: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.brand-eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.6rem;
}

.brand-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.brand-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 2.5rem;
}

.brand-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.bs-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px;
}

.bs-val {
  font-size: 22px;
  font-weight: 700;
  color: #5DCAA5;
  line-height: 1;
  margin-bottom: 4px;
}

.bs-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.brand-modules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.bm-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* Form panel */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--white);
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-box h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}

.auth-box .auth-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Form elements */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-control:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(55,138,221,0.12);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.invalid-feedback {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c6c5; }
.alert-success { background: var(--teal-light); color: var(--teal); border: 1px solid #b2e5d4; }

/* Submit button */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--blue-deep);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.btn-primary:hover { background: var(--blue-mid); }

/* Switch link */
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 13.5px;
  color: var(--gray-500);
}

.auth-switch a {
  color: var(--blue-mid);
  font-weight: 500;
  text-decoration: none;
}

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

/* Divider */
.form-divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 1.5rem 0;
}

/* Password strength */
.strength-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--gray-100);
  margin-top: 6px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-brand { display: none; }
  .auth-form-panel { padding: 2rem 1.25rem; }
}
