/* ============================================
   ZENITH SUM - AUTH PAGES (SignIn / SignUp / Reset)
   Premium white card + orange gradient
   ============================================ */
:root {
  --auth-bg: #f8fafc;
  --auth-card-bg: #ffffff;
  --auth-radius: 24px;
  --auth-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.04);
  --auth-shadow-hover: 0 24px 80px rgba(15, 23, 42, 0.12), 0 10px 32px rgba(15, 23, 42, 0.06);
  --auth-border: rgba(226, 232, 240, 0.6);
  --auth-accent: #f97316;
  --auth-accent-light: #fb923c;
  --auth-accent-glow: rgba(249, 115, 22, 0.3);
  --auth-accent-dim: rgba(249, 115, 22, 0.08);
  --auth-text: #0f172a;
  --auth-text-secondary: #475569;
  --auth-text-muted: #94a3b8;
  --auth-input-bg: #f8fafc;
  --auth-input-border: #e2e8f0;
  --auth-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.auth-body {
  font-family: var(--auth-font);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 960px;
}

.auth-form-col {
  width: 100%;
}

.auth-card {
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  border: 1px solid var(--auth-border);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.auth-card:hover {
  box-shadow: var(--auth-shadow-hover);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--auth-accent), #22c55e);
}

.auth-logo-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  display: inline-block;
  height: 44px;
  width: auto;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-text);
  text-align: center;
  margin-bottom: 0.375rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--auth-text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.form-group label .text-danger {
  color: #ef4444;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-control,
.input-icon-wrap .inputs {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.9375rem;
  font-family: var(--auth-font);
  color: var(--auth-text);
  background: var(--auth-input-bg);
  border: 1.5px solid var(--auth-input-border);
  border-radius: 12px;
  transition: all 0.2s ease;
  outline: none;
  height: 48px;
}

.input-icon-wrap .form-control:focus,
.input-icon-wrap .inputs:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-accent-dim);
  background: #ffffff;
}

.input-icon-wrap .form-control::placeholder,
.input-icon-wrap .inputs::placeholder {
  color: var(--auth-text-muted);
}

.input-icon-wrap select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-text-muted);
  font-size: 1.125rem;
  pointer-events: none;
  z-index: 2;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-text-muted);
  font-size: 1.125rem;
  cursor: pointer;
  z-index: 2;
  background: none;
  border: none;
  padding: 4px;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--auth-accent);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--auth-accent);
  cursor: pointer;
}

.custom-checkbox label {
  font-size: 0.8125rem;
  color: var(--auth-text-secondary);
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.forgot-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #ea580c;
  text-decoration: underline;
}

.btn-auth {
  width: 100%;
  padding: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--auth-font);
  color: #ffffff;
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-light));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--auth-accent-glow);
}

.btn-auth:active {
  transform: translateY(0);
}

.btn-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--auth-input-border);
}

.auth-divider span {
  position: relative;
  background: var(--auth-card-bg);
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: var(--auth-text-muted);
}

.social-auth {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--auth-font);
  color: var(--auth-text-secondary);
  background: var(--auth-card-bg);
  border: 1.5px solid var(--auth-input-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-social:hover {
  border-color: var(--auth-accent);
  background: var(--auth-accent-dim);
  color: var(--auth-accent);
}

.btn-social img {
  width: 18px;
  height: 18px;
}

.auth-footer-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-footer-links p {
  font-size: 0.875rem;
  color: var(--auth-text-secondary);
  margin-bottom: 0.125rem;
}

.auth-footer-links a {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer-links a:hover {
  color: #ea580c;
  text-decoration: underline;
}

.auth-copyright {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--auth-text-muted);
}

/* Welcome Gift / Side Panel */
.auth-side {
  display: none;
  flex-direction: column;
  max-width: 380px;
}

@media (min-width: 992px) {
  .auth-side { display: flex; }
  .auth-container { gap: 40px; }
  .auth-form-col { flex: 0 0 460px; }
}

.welcome-card {
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  border: 1px solid var(--auth-border);
  padding: 2.25rem;
  text-align: center;
  margin-bottom: 24px;
}

.welcome-card .welcome-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--auth-accent);
}

.welcome-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--auth-text);
}

.welcome-card p {
  font-size: 0.875rem;
  color: var(--auth-text-secondary);
  line-height: 1.6;
}

.welcome-card .welcome-sub {
  font-size: 0.75rem;
  color: var(--auth-text-muted);
  margin-top: 0.75rem;
}

.awards-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.awards-row .award-imgs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.awards-row .award-imgs img {
  height: 36px;
  width: auto;
}

@media (max-width: 480px) {
  .auth-card { padding: 1.5rem; border-radius: 16px; }
  .auth-title { font-size: 1.25rem; }
  .awards-row { flex-wrap: wrap; justify-content: center; }
  .awards-row .award-imgs { justify-content: center; }
}

/* Password Strength Meter */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.strength-segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--auth-input-border);
  transition: background 0.3s;
}

.strength-segment.active.weak { background: #ef4444; }
.strength-segment.active.fair { background: #f59e0b; }
.strength-segment.active.good { background: #22c55e; }
.strength-segment.active.strong { background: #16a34a; }
.strength-segment.active.very-strong { background: #15803d; }

.strength-label {
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 600;
}

/* Info box */
.info-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-box i {
  color: var(--auth-accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-box p {
  font-size: 0.8125rem;
  color: #9a3412;
  margin: 0;
  line-height: 1.5;
}

/* Success modal */
.premium-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.premium-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.premium-modal {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.premium-modal-overlay.active .premium-modal {
  transform: translateY(0) scale(1);
}

.premium-modal .modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.premium-modal .modal-icon.success { background: #dcfce7; color: #22c55e; }
.premium-modal .modal-icon.info { background: #dbeafe; color: #3b82f6; }

.premium-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.premium-modal p {
  font-size: 0.875rem;
  color: var(--auth-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.premium-modal .modal-btn {
  padding: 0.75rem 2rem;
  border-radius: 10px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.premium-modal .modal-btn.primary {
  background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-light));
  color: #fff;
}

.premium-modal .modal-btn.primary:hover {
  box-shadow: 0 4px 16px var(--auth-accent-glow);
}

/* Spinner */
.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* OTP input styling */
.otp-input {
  letter-spacing: 0.5em;
  font-size: 1.5rem !important;
  font-weight: 700;
  text-align: center;
}

/* Resend button */
.btn-resend {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--auth-accent);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  transition: color 0.2s;
  font-family: var(--auth-font);
}

.btn-resend:hover:not(:disabled) {
  color: #ea580c;
  text-decoration: underline;
}

.btn-resend:disabled {
  color: var(--auth-text-muted);
  cursor: not-allowed;
}
