/* ===================================================
   AUTH PAGES  –  shared styles (login + signup)
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

/* ---- Auth wrapper ---- */
.auth-page {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---- Left panel — branding ---- */
.auth-left {
  background: linear-gradient(160deg, #0f172a 0%, #001F3F 55%, #001F3F 100%);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.auth-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.auth-circle--1 { width: 340px; height: 340px; bottom: -100px; right: -80px; }
.auth-circle--2 { width: 200px; height: 200px; top: 60px; right: 40px; }

.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.auth-logo-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.auth-left-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.auth-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.auth-logo-text strong { font-size: 17px; font-weight: 800; color: #fff; }
.auth-logo-text span { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,.55); text-transform: uppercase; }

.auth-left-body {
  position: relative;
  z-index: 1;
  margin-top: 48px;
}
.auth-left-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.auth-left-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.auth-left-title span { color: #8FBDD6; }
.auth-left-desc {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Benefit list */
.auth-benefits { display: flex; flex-direction: column; gap: 14px; }
.auth-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.auth-benefit-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #8FBDD6;
  flex-shrink: 0;
}
.auth-benefit-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.auth-benefit-text span { font-size: 12px; color: rgba(255,255,255,.6); }

/* Testimonial */
.auth-left-footer {
  position: relative;
  z-index: 1;
}
.auth-testimonial {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 20px 22px;
}
.auth-testimonial-text {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
}
.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-testimonial-author img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
}
.auth-testimonial-name { font-size: 13px; font-weight: 700; color: #fff; }
.auth-testimonial-loc { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 1px; }
.auth-testimonial-stars { margin-left: auto; display: flex; gap: 2px; }
.auth-testimonial-stars i { color: #fde68a; font-size: 12px; }

/* ---- Right panel — form ---- */
.auth-right {
  background: #fff;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.auth-right-inner { max-width: 420px; width: 100%; margin: 0 auto; }

.auth-form-header { margin-bottom: 28px; }
.auth-form-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EEF4FA;
  color: #001F3F;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.auth-form-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}
.auth-form-sub {
  font-size: 14px;
  color: #64748b;
}
.auth-form-sub a { color: #001F3F; font-weight: 600; text-decoration: none; }
.auth-form-sub a:hover { text-decoration: underline; }

/* Social auth */
.auth-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.auth-social-btn:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 24px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* Fields */
.af-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.af-label { font-size: 13px; font-weight: 700; color: #1e293b; }
.af-wrap { position: relative; display: flex; align-items: center; }
.af-icon { position: absolute; left: 13px; color: #94a3b8; font-size: 13px; pointer-events: none; }
.af-input {
  width: 100%;
  padding: 12px 12px 12px 36px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.af-input:focus {
  border-color: #001F3F;
  box-shadow: 0 0 0 3px rgba(0,31,63,.10);
}
.af-input::placeholder { color: #94a3b8; }

/* Password toggle */
.af-eye {
  position: absolute;
  right: 12px;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s;
}
.af-eye:hover { color: #001F3F; }

/* Submit */
.af-submit {
  width: 100%;
  padding: 13px;
  background: #C5952E;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background .2s, transform .15s;
  margin-bottom: 16px;
}
.af-submit:hover { background: #A87A22; transform: translateY(-1px); }
.af-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Create-account button — full width, distinct from primary Continue */
.af-submit-create {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #001F3F;
  border: 2px solid #001F3F;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background .2s, color .2s, transform .15s;
  margin-bottom: 16px;
}
.af-submit-create:hover {
  background: #001F3F;
  color: #fff;
  transform: translateY(-1px);
}
.af-submit-create:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Error */
.af-error {
  display: none;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

/* Trust badges row */
.af-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.af-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}
.af-trust-item i { color: #22c55e; font-size: 12px; }

/* ---- Responsive ---- */
.auth-page-mobile-logo {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  text-decoration: none;
}
.auth-mobile-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 24px 48px; }
  .auth-page-mobile-logo { display: flex; }
}
