/* ============================================================
   SIGN IN / SIGN UP PAGE
   ============================================================ */

.auth-page {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.auth-top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.auth-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth-top-link {
  text-decoration: none;
  font-family: var(--font-bn), var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  transition: color 0.18s ease;
}
.auth-top-link:hover { color: var(--asb-orange); }

/* ---------- Grid layout ---------- */
.auth-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

/* ---------- Form side (left) ---------- */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--paper);
}
.auth-form-wrap {
  width: 100%;
  max-width: 440px;
}

/* Tabs */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 11px 16px;
  border-radius: 100px;
  font-family: var(--font-bn), var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.2s ease;
}
.auth-tab.is-on { color: var(--paper); }
.auth-tab-glide {
  position: absolute;
  top: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--asb-navy);
  border-radius: 100px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-tab-glide-signin { left: 4px; }
.auth-tab-glide-signup { left: 50%; }

/* Heading */
.auth-head { margin-bottom: 24px; }
.auth-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 8px;
}
body.lang-bn .auth-title { font-family: var(--font-bn); font-size: 30px; }
.auth-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

/* Role toggle */
.auth-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}
.auth-role-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}
.auth-role-btn:hover { border-color: var(--gold-soft); }
.auth-role-btn.is-on {
  border-color: var(--asb-orange);
  background: var(--gold-mist);
}
.auth-role-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  flex-shrink: 0;
}
.auth-role-btn.is-on .auth-role-icon {
  background: var(--asb-orange);
  color: #fff;
}
.auth-role-icon svg { width: 18px; height: 18px; }
.auth-role-text { min-width: 0; }
.auth-role-name {
  font-family: var(--font-bn), var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.auth-role-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Social buttons */
.auth-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
}
.auth-social-btn:hover {
  border-color: var(--ink-3);
  background: var(--paper-2);
}

.auth-divider {
  position: relative;
  text-align: center;
  margin-bottom: 22px;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  position: relative;
  background: var(--paper);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field { }
.auth-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-bn), var(--font-body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: all 0.18s ease;
}
.auth-field input:focus {
  border-color: var(--asb-orange);
  box-shadow: 0 0 0 4px var(--gold-mist);
}
.auth-field input::placeholder { color: var(--ink-muted); }

.auth-pwd { position: relative; }
.auth-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-pwd-toggle:hover { color: var(--ink); background: var(--paper); }

.auth-pwd-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.auth-pwd-bars {
  display: flex;
  gap: 3px;
  flex: 1;
}
.auth-pwd-bar {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: var(--line);
  transition: background 0.2s ease;
}
.auth-pwd-strength[data-score="1"] .auth-pwd-bar.is-on { background: #DC2626; }
.auth-pwd-strength[data-score="2"] .auth-pwd-bar.is-on { background: #F59E0B; }
.auth-pwd-strength[data-score="3"] .auth-pwd-bar.is-on { background: #84CC16; }
.auth-pwd-strength[data-score="4"] .auth-pwd-bar.is-on { background: var(--live); }
.auth-pwd-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
}

/* Row between */
.auth-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Checkbox */
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-bn), var(--font-body);
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}
.auth-check input { display: none; }
.auth-check-box {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  position: relative;
  transition: all 0.18s ease;
}
.auth-check input:checked + .auth-check-box {
  background: var(--asb-orange);
  border-color: var(--asb-orange);
}
.auth-check input:checked + .auth-check-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-terms { margin-top: -4px; }

.auth-link {
  color: var(--asb-orange);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.auth-link:hover { color: var(--gold-deep); text-decoration: underline; }
.auth-link-strong { font-weight: 700; }

/* Submit */
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  background: var(--asb-navy);
  color: var(--paper);
  font-family: var(--font-bn), var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-top: 4px;
}
.auth-submit:hover {
  background: #1A2240;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(42, 54, 86, 0.18);
}
.auth-submit svg { width: 18px; height: 18px; }

.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-family: var(--font-bn), var(--font-body);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Brand side (right) ---------- */
.auth-brand-side {
  position: relative;
  background: linear-gradient(160deg, var(--asb-navy) 0%, #1A2240 100%);
  color: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
}
.auth-brand-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-brand-inner {
  position: relative;
  max-width: 480px;
  width: 100%;
}
.auth-brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(245,130,32,0.12);
  border: 1px solid rgba(245,130,32,0.3);
  color: var(--asb-orange-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.auth-brand-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 18px;
  text-wrap: balance;
}
body.lang-bn .auth-brand-title { font-family: var(--font-bn); font-size: 36px; }
.auth-brand-title em {
  font-family: var(--font-bn-display);
  font-style: italic;
  font-weight: 500;
  color: var(--asb-orange-bright);
}
body.lang-en .auth-brand-title em { font-family: var(--font-display); font-style: italic; }
.auth-brand-sub {
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}

/* Brand stats */
.auth-brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.auth-brand-stat { text-align: center; }
.auth-brand-stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--asb-orange-bright);
  letter-spacing: -0.02em;
  line-height: 1;
}
body.lang-bn .auth-brand-stat-num { font-family: var(--font-bn); }
.auth-brand-stat-label {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* Testimonial */
.auth-testimonial {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.auth-testimonial-quote {
  font-family: var(--font-bn), var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.9);
}
.auth-testimonial-by {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--asb-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.auth-testimonial-name {
  font-family: var(--font-bn), var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
}
.auth-testimonial-role {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.auth-trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.auth-trust-row svg {
  width: 14px;
  height: 14px;
  color: var(--live);
  background: rgba(79,139,87,0.2);
  border-radius: 50%;
  padding: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-brand-side { padding: 48px 32px; min-height: auto; order: -1; }
  .auth-brand-title { font-size: 32px; }
  body.lang-bn .auth-brand-title { font-size: 26px; }
  .auth-form-side { padding: 32px 20px; }
}
@media (max-width: 540px) {
  .auth-title { font-size: 28px; }
  body.lang-bn .auth-title { font-size: 24px; }
  .auth-role { grid-template-columns: 1fr; }
  .auth-social { grid-template-columns: 1fr; }
  .auth-brand-stats { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .auth-brand-stat { display: flex; justify-content: space-between; align-items: center; text-align: left; }
}
