/* ─────────────────────────────────────────────
   AUTH — split-panel shell, form elements, and
   page-specific brand-panel content for login
   and register.  Requires: base.css
───────────────────────────────────────────── */

body { display: flex; min-height: 100vh; }

/* ─── LEFT BRAND PANEL ─── */
.brand-panel {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,23,42,.93) 0%, rgba(15,23,42,.78) 50%, rgba(13,148,136,.55) 100%),
    url('/img/Dyno_car_background_1-resample-2.jpg') center / cover no-repeat;
}
.brand-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
  color: var(--white);
}
.brand-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.brand-logo img  { width: 44px; height: 44px; border-radius: 10px; }
.brand-logo span { color: #5eead4; }
a.brand-logo     { color: inherit; text-decoration: none; }
.brand-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 48px;
}

/* ─── LOGIN — feature list ─── */
.brand-features { text-align: left; }
.brand-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.brand-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(13,148,136,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #5eead4;
}
.brand-feature h4 { font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.brand-feature p  { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.5; }

/* ─── LOGIN — testimonial quote ─── */
.brand-quote {
  margin-top: 48px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
}
.brand-quote p         { font-size: .925rem; color: #e2e8f0; font-style: italic; margin-bottom: 10px; }
.brand-quote-author    { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ─── REGISTER — checklist ─── */
.brand-checklist { text-align: left; }
.brand-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.brand-check-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(13,148,136,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: #5eead4;
}
.brand-check-item p        { font-size: .9rem; color: #e2e8f0; line-height: 1.5; }
.brand-check-item p strong { color: var(--white); font-weight: 600; }

/* ─── REGISTER — stats row ─── */
.brand-stats { margin-top: 48px; display: flex; gap: 20px; justify-content: center; }
.brand-stat {
  text-align: center;
  padding: 16px 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  flex: 1;
  backdrop-filter: blur(4px);
}
.brand-stat .num   { font-size: 1.6rem; font-weight: 800; color: #5eead4; display: block; margin-bottom: 2px; }
.brand-stat .label { font-size: .8rem; color: #94a3b8; }

/* ─── RIGHT FORM PANEL ─── */
.form-panel {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: var(--white);
  overflow-y: auto;
}
.form-container { width: 100%; max-width: 420px; }
.form-header { margin-bottom: 28px; }
.form-header .mobile-logo {
  display: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 24px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.form-header .mobile-logo img  { width: 36px; height: 36px; border-radius: 8px; }
.form-header .mobile-logo span { color: var(--primary); }
.form-header h1 { font-size: 1.7rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.form-header p  { font-size: .95rem; color: var(--muted); }

/* ─── FORM ELEMENTS ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--dark); }
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  font-family: inherit;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}
.form-input.is-invalid { border-color: var(--red); }
.form-error { font-size: .8rem; color: var(--red); }
.form-link {
  font-size: .875rem;
  color: var(--primary);
  font-weight: 500;
  transition: color .2s;
  text-decoration: none;
}
.form-link:hover { color: var(--primary-dark); }

/* ─── LOGIN — remember / forgot row ─── */
.login-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── REGISTER — two-column row + password strength ─── */
.register-form { display: flex; flex-direction: column; gap: 20px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-strength { display: flex; gap: 4px; margin-top: 4px; }
.strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}
.strength-bar.active.weak   { background: var(--red); }
.strength-bar.active.medium { background: #f59e0b; }
.strength-bar.active.strong { background: var(--green); }
.strength-text { font-size: .75rem; color: var(--muted); margin-top: 4px; min-height: 1em; }

/* ─── CHECKBOX (single-line login / multi-line register) ─── */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}
.form-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}
.form-checkbox a { color: var(--primary); font-weight: 500; text-decoration: none; }

/* ─── SUBMIT BUTTON ─── */
.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(13,148,136,.25);
  font-family: inherit;
}
.btn-submit:hover  { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,.3); }
.btn-submit:active { transform: translateY(0); }

/* ─── DIVIDER ─── */
.divider { display: flex; align-items: center; gap: 14px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.divider span {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 500;
}

/* ─── GOOGLE BUTTON ─── */
.btn-google {
  width: 100%;
  padding: 12px;
  font-size: .95rem;
  font-weight: 500;
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  text-decoration: none;
  margin-bottom: 4px;
}
.btn-google:hover { background: var(--light); border-color: #cbd5e1; }
.btn-google svg   { width: 20px; height: 20px; flex-shrink: 0; }

/* ─── FOOTER LINKS ─── */
.form-footer {
  margin-top: 28px;
  text-align: center;
  font-size: .925rem;
  color: var(--muted);
}
.form-footer a { color: var(--primary); font-weight: 600; transition: color .2s; text-decoration: none; }
.form-footer a:hover { color: var(--primary-dark); }
.form-bottom-links { margin-top: 40px; text-align: center; }
.form-bottom-links a {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 12px;
  transition: color .2s;
  text-decoration: none;
}
.form-bottom-links a:hover { color: var(--primary); }

/* ─── PASSWORD TOGGLE ─── */
.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 44px; }
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-password:hover { color: var(--text); }
.toggle-password svg { width: 20px; height: 20px; }

/* ─── FORM UTILITIES ─── */
/* Optional label note (e.g. "optional" hint next to a label) */
.form-label-note { font-weight: 400; color: var(--muted); }
/* reCAPTCHA hint / error */
#recaptcha-consent-hint { font-size: .8rem; color: var(--muted); }
#recaptcha-error        { font-size: .85rem; color: var(--red); display: none; }
/* MFA code input — large centred digits */
.code-input { letter-spacing: .35em; font-size: 1.4rem; text-align: center; }
/* form-link used as a <button> — reset browser button defaults */
button.form-link { background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
/* Inline form wrapper (e.g. resend link inside a form) */
.form-inline { display: inline; margin: 0; padding: 0; }
/* Password toggle icon visibility */
.eye-show.hidden, .eye-hide.hidden { display: none; }

/* ─── LANG SWITCHER (fixed, top-right) ─── */
.lang-switcher { position: fixed; top: 16px; right: 20px; z-index: 200; }
.lang-btn { background: var(--white); box-shadow: var(--shadow-sm); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .brand-panel { display: none; }
  body { background: var(--light); }
  .form-panel { padding: 30px 20px; background: var(--light); }
  .form-container {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
  }
  .form-header .mobile-logo { display: flex; }
}
@media (max-width: 480px) {
  .form-container { padding: 24px 18px; }
  .form-header h1 { font-size: 1.4rem; }
  .form-row       { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-row-2col  { grid-template-columns: 1fr; gap: 18px; }
}
