/* ===========================
   AUTH PAGE STYLES
   =========================== */

.auth-body {
  background: var(--bg-primary);
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOS fix */
  display: flex;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
  overscroll-behavior: none;
}


.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
}

/* ─── Left Panel ─── */
.auth-left {
  display: flex;
  flex-direction: column;
  padding: 32px 48px;
  position: relative;
  overflow-y: auto;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 40px;
  transition: all var(--transition);
  width: fit-content;
}

.auth-back:hover {
  color: var(--text-primary);
  gap: 12px;
}

.auth-form-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 0.8rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  margin-top: 2px;
}

.checkbox-label input:checked ~ .checkmark {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity var(--transition);
}

.checkbox-label input:checked ~ .checkmark::after {
  opacity: 1;
}

.terms-check { margin-top: -4px; }

.auth-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.auth-link:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

.auth-footer-text {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-secure {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.auth-secure span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.green { background: var(--accent-green); animation: pulse 2s ease-in-out infinite; }

.secure-icon { font-size: 0.85rem; }

/* ─── Password Strength ─── */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}

.strength-bar.weak { background: #ef4444; }
.strength-bar.medium { background: #f97316; }
.strength-bar.good { background: #f59e0b; }
.strength-bar.strong { background: var(--accent-green); }

.strength-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Steps List (Register) ─── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}

.step-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.step-item span { font-size: 0.8rem; color: var(--text-secondary); }

/* ─── Right Panel ─── */
.auth-right {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 48px;
}

.auth-right-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-icon.large {
  width: 48px;
  height: 48px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.auth-right-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.auth-right-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.trust-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}

.trust-item:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon.green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.trust-icon.blue { background: rgba(99,102,241,0.15); color: var(--accent-blue); }
.trust-icon.pink { background: rgba(236,72,153,0.15); color: var(--accent-pink); }

.trust-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.trust-item span { font-size: 0.8rem; color: var(--text-secondary); }

.auth-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.as-item {
  flex: 1;
  text-align: center;
}

.as-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.as-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.payment-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pay-badge-list {
  display: flex;
  gap: 8px;
}

.pbadge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pbadge.blue { background: rgba(99,102,241,0.15); color: var(--accent-blue); }
.pbadge.orange { background: rgba(249,115,22,0.15); color: var(--accent-orange); }
.pbadge.green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.pbadge.purple { background: rgba(139,92,246,0.15); color: var(--accent-purple); }

/* ─── Orbs ─── */
.auth-right-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.auth-orb-1 {
  width: 350px;
  height: 350px;
  background: rgba(99,102,241,0.2);
  bottom: -150px;
  right: -150px;
  animation: float 7s ease-in-out infinite;
}

.auth-orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(236,72,153,0.15);
  top: -80px;
  left: -80px;
  animation: float 5s ease-in-out infinite reverse;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-right {
    display: none;
  }

  .auth-left {
    padding: 24px;
  }

  .auth-form-wrapper {
    max-width: 100%;
  }
}
