/* ============================================
   SANGS Auth Styles (Login / Register)
   ============================================ */

.auth-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Tab toggle */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-glass);
}

.auth-tab {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease);
  position: relative;
}

.auth-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--duration-normal) var(--ease);
}

.auth-tab.active {
  color: var(--gold-text);
  background: rgba(161, 98, 7, 0.04);
}

.auth-tab.active::after {
  background: var(--gold);
}

.auth-tab:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
}

/* Panels */
.auth-panel {
  display: none;
  animation: fadeUp var(--duration-slow) var(--ease-out);
}

.auth-panel.active {
  display: block;
}

/* Auth-specific form overrides */
.auth-section .form-group textarea {
  min-height: 60px;
}

/* Switch link */
.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 24px;
}

.auth-switch a {
  color: var(--gold-text);
  font-weight: 600;
}

.auth-switch a:hover {
  color: var(--gold-text);
}


/* OTP channel choice (register form).
   Selectors are deliberately over-qualified: the generic
   `.form-group label` / `.form-group input` rules in style.css would
   otherwise win and turn the options back into uppercase block labels
   and full-width text-styled inputs. */
.otp-channel-choice {
  display: flex;
  gap: 10px;
}

.form-group label.otp-channel-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease);
}

.form-group label.otp-channel-option small {
  font-weight: 400;
  color: var(--text-muted);
}

/* Radio semantics (single choice), checkbox looks: square box + tick. */
.form-group .otp-channel-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: all var(--duration-normal) var(--ease);
}

.form-group .otp-channel-option input[type="radio"]:checked {
  border-color: var(--gold);
  background: var(--gold);
}

.form-group .otp-channel-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-group label.otp-channel-option:has(input:checked) {
  color: var(--gold-text);
  border-color: var(--gold);
  background: rgba(161, 98, 7, 0.05);
}

@media (max-width: 480px) {
  .otp-channel-choice {
    flex-direction: column;
  }
}

/* OTP Verification */
.otp-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--gold);
  opacity: 0.7;
}

.otp-icon svg {
  width: 100%;
  height: 100%;
}

.otp-input-group {
  margin: 28px auto 24px;
  max-width: 240px;
}

.otp-input-group input {
  width: 100%;
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-normal) var(--ease);
  -webkit-appearance: none;
}

.otp-input-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.otp-input-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
  letter-spacing: 10px;
}

.otp-resend {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 24px;
}

.otp-resend a {
  color: var(--gold-text);
  font-weight: 600;
  cursor: pointer;
}

.otp-resend a:hover {
  color: var(--gold-text);
}

.otp-resend a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.otp-timer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-section .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-card {
    padding: 24px;
  }
}
