body {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
/* ── LEFT PANEL ── */
.panel-left {
  background: linear-gradient(160deg, var(--rose-500) 0%, var(--red-800) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  min-height: 100svh;
}

.panel-left::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -120px;
  right: -120px;
  pointer-events: none;
}

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

.panel-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.panel-hero {
  position: relative;
  z-index: 1;
}

.panel-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.panel-quote em { font-style: italic; }

.panel-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 34ch;
}

.panel-testimonial {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.testimonial-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.testimonial-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.testimonial-name {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ── RIGHT PANEL (FORM) ── */
.panel-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 100svh;
  overflow-y: auto;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.form-title em { font-style: italic; color: var(--rose-600); }

.form-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
}

/* Tab switcher */
.tabs {
  display: flex;
  background: var(--rose-50);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 2rem;
  border: 1px solid var(--rose-100);
}

.tab-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  display: block;
}

.tab-btn.active {
  background: white;
  color: var(--rose-600);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Flash messages */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flash-error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.flash-success {
  background: #f0fdf4;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

/* Form fields */
.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.field-wrap {
  position: relative;
}

.field-wrap svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
}

.field-wrap input, .field-wrap select {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  border: 1.5px solid var(--rose-100);
  border-radius: 12px;
  background: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.field-wrap--select select {
  width: 100%;
  padding: 0.75rem 2.2rem 0.75rem 2.6rem;
  border: 1.5px solid var(--rose-100);
  border-radius: 12px;
  background: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field-wrap--select select:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.field-wrap--select select:disabled {
  background: var(--rose-50);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

/* Left icon */
.field-wrap--select > svg:first-child {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
  z-index: 1;
}

.field-wrap--select:focus-within > svg:first-child {
  color: var(--rose-500);
}

/* Right chevron */
.select-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: transform 0.22s, color 0.2s;
}

.field-wrap--select select:focus ~ .select-chevron {
  transform: translateY(-50%) rotate(180deg);
  color: var(--rose-500);
}

.field-wrap--select select:disabled ~ .select-chevron {
  opacity: 0.3;
}

/* Loading shimmer */
.field-wrap--select.is-loading select {
  background: linear-gradient(
    90deg,
    var(--rose-50) 25%,
    var(--rose-100) 50%,
    var(--rose-50) 75%
  );
  background-size: 200% 100%;
  animation: locShimmer 1.1s ease-in-out infinite;
  pointer-events: none;
  color: transparent;
}

@keyframes locShimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* Fallback free-text input (matches existing .field-wrap input styles) */
.field-wrap--select input.fallback-input {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  border: 1.5px solid var(--rose-100);
  border-radius: 12px;
  background: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.field-wrap--select input.fallback-input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.field-wrap input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.field-wrap input:focus + svg,
.field-wrap:focus-within svg { color: var(--rose-500); }

/* Icon AFTER input for toggle password */
.toggle-pass {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background: none;
  color: var(--muted);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  width: 16px;
  height: 16px;
  border: none;
  outline: none;
}
.toggle-pass:hover { color: var(--rose-500); }

/* Password strength */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--rose-100);
  transition: background 0.3s;
}
.strength-bar.filled-1 { background: #ef4444; }
.strength-bar.filled-2 { background: #f97316; }
.strength-bar.filled-3 { background: #eab308; }
.strength-bar.filled-4 { background: #22c55e; }

.strength-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Field error */
.field-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 4px;
}

/* Row of 2 fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Checkbox */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.check-field input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--rose-600);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.check-field label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.check-field a { color: var(--rose-600); text-decoration: none; }
.check-field a:hover { text-decoration: underline; }

/* Forgot link */
.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--rose-600);
  text-decoration: none;
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}
.forgot-link:hover { text-decoration: underline; }

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--rose-600);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-submit:hover {
  background: var(--rose-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.3);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* OR divider */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rose-100);
}
.divider span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Social buttons */
.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1.5px solid var(--rose-100);
  border-radius: 12px;
  background: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.btn-social:hover {
  border-color: var(--rose-300);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.switch-mode {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.switch-mode a {
  color: var(--rose-600);
  font-weight: 500;
  text-decoration: none;
}
.switch-mode a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
body { grid-template-columns: 1fr; }
.panel-left { display: none; }
.panel-right { padding: 2rem 1.25rem; }
}