/* ============================================================
   AUTH.CSS — Premium Dark Theme — GenBahis Sports Betting
   Registration & Login Pages
   ============================================================ */

/* 1. Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS VARIABLES (Shared with main.css)
   ============================================================ */
:root {
  --bg-primary:    #1A1D24;
  --bg-secondary:  #22262F;
  --bg-card:       #22262F;
  --accent-purple: #ffd600;
  --accent-pink:   #ffd600;
  --accent-green:  #10b981;
  --accent-red:    #ef4444;
  --accent-yellow: #ffd600;
  --text-primary:  #ffffff;
  --text-secondary:#cccccc;
  --text-muted:    #999999;
  --border-color:  rgba(255, 255, 255, 0.1);
  --gradient-main: #ffd600;

  /* Auth-specific extras */
  --glow-purple:   0 0 20px rgba(255, 214, 0, 0.3);
  --glow-green:    0 0 20px rgba(16, 185, 129, 0.4);
  --shadow-card:   0 10px 30px rgba(0, 0, 0, 0.5);
  --transition-base: all 0.3s ease;
  --radius-card:   12px;
  --radius-input:  8px;
  --radius-btn:    8px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.auth-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   2. AUTH PAGE — BACKGROUND
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow-x: hidden;
  background: var(--bg-primary);
}

/* ============================================================
   3. FLOATING ORBS / PARTICLES EFFECT (REMOVED)
   ============================================================ */
.auth-bg-orbs {
  display: none;
}

.auth-page::after {
  display: none;
}

/* ============================================================
   4. AUTH CONTAINER
   ============================================================ */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

/* ============================================================
   5. AUTH CARD — GLASSMORPHISM
   ============================================================ */
.auth-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

/* Inner shine / shimmer overlay */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 214, 0, 0.4) 50%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent 100%
  );
  z-index: 1;
}

/* Diagonal shine sweep */
.auth-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.025) 50%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  animation: card-shine 8s ease-in-out infinite;
}

@keyframes card-shine {
  0%   { left: -60%; }
  50%  { left: 120%; }
  100% { left: 120%; }
}

/* Ensure card children appear above pseudo-elements */
.auth-card > * {
  position: relative;
  z-index: 2;
}

/* ============================================================
   6. AUTH LOGO
   ============================================================ */
.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.logo-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 50%;
  box-shadow: var(--glow-purple);
  position: relative;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%   { box-shadow: 0 0 20px rgba(255, 214, 0,0.4), 0 0 40px rgba(255, 214, 0,0.15); }
  50%  { box-shadow: 0 0 35px rgba(255, 214, 0,0.6), 0 0 70px rgba(255, 214, 0,0.25), 0 0 100px rgba(255, 214, 0,0.1); }
  100% { box-shadow: 0 0 20px rgba(255, 214, 0,0.4), 0 0 40px rgba(255, 214, 0,0.15); }
}

.logo-text {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   7. AUTH TITLE
   ============================================================ */
.auth-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ============================================================
   8. AUTH SUBTITLE
   ============================================================ */
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ============================================================
   9. STEP PROGRESS BAR
   ============================================================ */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

/* Connecting background line */
.step-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  flex: 1;
  position: relative;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-base);
  position: relative;
  z-index: 2;
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
  font-weight: 500;
  transition: var(--transition-base);
}

/* Active step */
.step.active .step-circle {
  border-color: var(--accent-purple);
  background: rgba(255, 214, 0, 0.2);
  color: var(--accent-purple);
  box-shadow: 0 0 16px rgba(255, 214, 0, 0.3);
}

.step.active .step-label {
  color: var(--accent-purple);
}

/* Completed step */
.step.completed .step-circle {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
  box-shadow: var(--glow-green);
}

.step.completed .step-circle::after {
  content: '✓';
  font-size: 0.9rem;
  font-weight: 800;
}

.step.completed .step-label {
  color: var(--accent-green);
}

/* Step connecting lines (between circles) */
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  position: relative;
  z-index: 1;
  margin-top: -18px;
  align-self: flex-start;
  transition: var(--transition-base);
}

.step-line.active {
  background: var(--gradient-main);
}

/* ============================================================
   10. STEP FORMS — VISIBILITY & ANIMATION
   ============================================================ */
.step-form {
  display: none;
}

.step-form.active {
  display: block;
  animation: fadeInSlide 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-form.slide-back {
  animation: fadeInSlideBack 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInSlideBack {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   11. FORM GROUP
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

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

/* ============================================================
   12. FORM LABEL
   ============================================================ */
.form-label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.form-group:focus-within .form-label {
  color: var(--accent-purple);
}

/* ============================================================
   13. INPUT WRAPPER & ICON
   ============================================================ */
.input-wrapper {
  position: relative;
  display: block;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 1;
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent-purple);
}

/* ============================================================
   14. FORM CONTROL (AUTH)
   ============================================================ */
.form-control {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.4;
}

.form-control.has-icon {
  padding-left: 44px;
}

.form-control:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.15);
  background-color: var(--bg-card);
}

.form-control:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ============================================================
   15. PASSWORD WRAPPER & TOGGLE
   ============================================================ */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-control {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.2s ease;
  z-index: 2;
  line-height: 1;
}

.password-toggle:hover {
  color: var(--text-primary);
}

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

.strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 99px;
  background: var(--border-color);
  transition: background 0.3s ease;
}

.strength-bar.weak   { background: var(--accent-red); }
.strength-bar.fair   { background: var(--accent-yellow); }
.strength-bar.good   { background: #3b82f6; }
.strength-bar.strong { background: var(--accent-green); }

.strength-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
  transition: color 0.3s ease;
}

/* ============================================================
   16. CHAR COUNTER
   ============================================================ */
.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.char-counter.limit-reached {
  color: var(--accent-green);
  font-weight: 600;
}

.char-counter.over-limit {
  color: var(--accent-red);
}

/* ============================================================
   17. FORM ERROR — VALIDATION
   ============================================================ */
.form-error {
  color: var(--accent-red);
  font-size: 0.78rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.form-error::before {
  content: '⚠';
  flex-shrink: 0;
  font-size: 0.7rem;
}

@keyframes shake {
  0%,  100% { transform: translateX(0); }
  20%        { transform: translateX(-6px); }
  40%        { transform: translateX(6px); }
  60%        { transform: translateX(-4px); }
  80%        { transform: translateX(4px); }
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ============================================================
   18. AGE WARNING BANNER
   ============================================================ */
.age-warning {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.30);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.age-warning-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.age-warning strong {
  font-weight: 700;
}

/* ============================================================
   19. TERMS CHECKBOX — CUSTOM STYLING
   ============================================================ */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-wrapper input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  margin-top: 1px;
  position: relative;
}

.checkbox-wrapper input[type="checkbox"]::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  top: 1px;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background: var(--gradient-main);
  border-color: transparent;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-wrapper input[type="checkbox"]:hover:not(:checked) {
  border-color: var(--accent-purple);
  background: rgba(255, 214, 0, 0.1);
}

.checkbox-wrapper a {
  color: var(--accent-purple);
  font-weight: 600;
  text-decoration: none;
}

.checkbox-wrapper a:hover {
  text-decoration: underline;
}

/* ============================================================
   20. BUTTON — AUTH (PRIMARY)
   ============================================================ */
.btn-auth {
  width: 100%;
  height: 52px;
  background: var(--gradient-main);
  border: none;
  border-radius: var(--radius-btn);
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition-base);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

/* Shimmer sweep on hover */
.btn-auth::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  transition: left 0.5s ease;
}

.btn-auth:hover::before {
  left: 100%;
}

.btn-auth:hover {
  opacity: 0.92;
  transform: scale(1.01) translateY(-1px);
  box-shadow: 0 8px 30px rgba(255, 214, 0, 0.40), 0 4px 12px rgba(255, 214, 0, 0.2);
}

.btn-auth:active {
  transform: scale(0.99) translateY(0);
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.btn-auth:disabled,
.btn-auth.disabled {
  opacity: 0.50;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Loading spinner inside button */
.btn-auth.loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn-auth .btn-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

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

/* ============================================================
   21. BUTTON — BACK (SECONDARY/GHOST)
   ============================================================ */
.btn-back {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition-base);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.01em;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-back:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.03);
}

/* Social / OAuth buttons */
.btn-social {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ============================================================
   22. DIVIDER
   ============================================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   23. AUTH SWITCH LINK
   ============================================================ */
.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.5;
}

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

.auth-switch a:hover {
  text-decoration: underline;
  color: #a855f7;
}

/* ============================================================
   24. SUCCESS STEP
   ============================================================ */
.success-step {
  text-align: center;
  padding: 20px 0;
  animation: fadeInSlide 0.5s ease forwards;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 16px;
  box-shadow: var(--glow-green);
  animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes success-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.success-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.success-details {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.success-details strong {
  color: var(--text-primary);
}

/* ============================================================
   25. LOGIN CARD (Variant for login.php)
   ============================================================ */
.login-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  max-width: 420px;
  width: 100%;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 214, 0, 0.4) 50%,
    rgba(255, 255, 255, 0.12) 70%,
    transparent 100%
  );
  z-index: 1;
}

.login-card > * {
  position: relative;
  z-index: 2;
}

/* Top accent bar for login card */
.login-card-accent {
  height: 3px;
  background: var(--gradient-main);
  border-radius: 99px;
  margin-bottom: 28px;
  width: 60px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   26. REMEMBER ROW & FORGOT LINK
   ============================================================ */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
  gap: 8px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  transition: var(--transition-base);
}

.remember-label input[type="checkbox"]::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  top: 1px;
  left: 4px;
}

.remember-label input[type="checkbox"]:checked {
  background: var(--gradient-main);
  border-color: transparent;
}

.remember-label input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

.forgot-link {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

/* ============================================================
   27. INPUT VALIDATION STATES
   ============================================================ */
.form-control.is-valid {
  border-color: var(--accent-green) !important;
  background: rgba(16, 185, 129, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.form-control.is-invalid {
  border-color: var(--accent-red) !important;
  background: rgba(239, 68, 68, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Validation icon inside input wrapper */
.input-wrapper .validation-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-group.validated .input-wrapper .validation-icon {
  opacity: 1;
}

.validation-icon.valid   { color: var(--accent-green); }
.validation-icon.invalid { color: var(--accent-red); }

/* ============================================================
   BONUS: PHONE INPUT WITH COUNTRY CODE
   ============================================================ */
.phone-wrapper {
  display: flex;
  gap: 8px;
}

.phone-prefix {
  width: 90px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-input);
  padding: 13px 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition-base);
  text-align: center;
  cursor: pointer;
}

.phone-prefix:focus {
  border-color: var(--accent-purple);
  background: rgba(255, 214, 0, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.20);
}

.phone-input {
  flex: 1;
}

/* ============================================================
   BONUS: DATE OF BIRTH INPUT ROW
   ============================================================ */
.dob-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
}

.dob-row select.form-control {
  padding: 13px 12px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 30px;
}

/* ============================================================
   BONUS: INFO TOOLTIP
   ============================================================ */
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: help;
  margin-left: 4px;
  position: relative;
  vertical-align: middle;
  transition: background 0.2s ease;
}

.info-tooltip:hover {
  background: rgba(255, 214, 0, 0.3);
  color: var(--accent-purple);
}

/* ============================================================
   BONUS: BONUS BADGE
   ============================================================ */
.bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--accent-green);
  margin-bottom: 20px;
  width: 100%;
  font-weight: 500;
}

.bonus-badge-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.bonus-badge strong {
  font-weight: 700;
}

/* ============================================================
   BONUS: TRUST INDICATORS
   ============================================================ */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.trust-item-icon {
  font-size: 0.9rem;
  color: var(--accent-green);
}

/* ============================================================
   BONUS: STEP COUNTER BADGE (Mobile-friendly)
   ============================================================ */
.step-badge {
  display: inline-block;
  background: rgba(255, 214, 0, 0.15);
  border: 1px solid rgba(255, 214, 0, 0.3);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.75rem;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ============================================================
   BONUS: NOTIFICATION / ALERT BANNER
   ============================================================ */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.auth-alert.info {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.auth-alert.warning {
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-yellow);
}

/* ============================================================
   CAPTCHA WRAPPER
   ============================================================ */
.captcha-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

/* ============================================================
   28. RESPONSIVE — MOBILE (max-width 480px)
   ============================================================ */
@media (max-width: 480px) {
  .auth-page {
    padding: 12px;
    align-items: flex-start;
    padding-top: 24px;
  }

  .auth-card {
    padding: 24px;
    border-radius: 16px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dob-row {
    grid-template-columns: 1fr 1fr;
  }

  .dob-row .form-group:last-child {
    grid-column: 1 / -1;
  }

  .step-label {
    display: none;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .trust-row {
    gap: 12px;
    flex-wrap: wrap;
  }

  .btn-auth {
    height: 48px;
    font-size: 0.95rem;
  }

  .auth-bg-orb {
    display: none;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 20px 16px;
  }

  .remember-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================================
   29. BACKGROUND ANIMATIONS — ADDITIONAL EFFECTS
   ============================================================ */

/* Twinkling star particles */
.auth-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.auth-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {
  0%,  100% { opacity: 0.1; transform: scale(1); }
  50%        { opacity: 0.8; transform: scale(1.5); }
}

/* Corner decorative accents */
.auth-corner-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.auth-corner-accent.top-left {
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 0% 0%, rgba(255, 214, 0, 0.12) 0%, transparent 60%);
}

.auth-corner-accent.bottom-right {
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 100% 100%, rgba(255, 214, 0, 0.10) 0%, transparent 60%);
}

/* Pulsing ring animation around card */
.auth-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-card) + 1px);
  background: linear-gradient(135deg, rgba(255, 214, 0,0.4) 0%, rgba(255, 214, 0,0.4) 100%);
  z-index: -1;
  opacity: 0;
  animation: ring-pulse 4s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%,  100% { opacity: 0;    transform: scale(1); }
  50%        { opacity: 0.15; transform: scale(1.005); }
}

/* ============================================================
   UTILITY CLASSES — AUTH SPECIFIC
   ============================================================ */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-4  { margin-top: 4px !important; }
.mt-8  { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-4  { margin-bottom: 4px !important; }
.mb-8  { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }

.text-center   { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.text-muted    { color: var(--text-muted); }
.text-secondary{ color: var(--text-secondary); }
.text-primary-c{ color: var(--text-primary); }
.text-green    { color: var(--accent-green); }
.text-red      { color: var(--accent-red); }
.text-yellow   { color: var(--accent-yellow); }
.text-purple   { color: var(--accent-purple); }

.w-full  { width: 100%; }
.d-flex  { display: flex; }
.d-block { display: block; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }

/* ============================================================
   SCROLLBAR STYLING (Webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 214, 0, 0.3);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 214, 0, 0.5);
}

/* ============================================================
   FOCUS VISIBLE — ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   PRINT — HIDE DECORATIVE ELEMENTS
   ============================================================ */
@media print {
  .auth-bg-orbs,
  .auth-stars,
  .auth-corner-accent,
  .auth-page::after {
    display: none;
  }

  .auth-card,
  .login-card {
    box-shadow: none;
    border: 1px solid #ccc;
    backdrop-filter: none;
  }
}

/* ============================================================
   END OF AUTH.CSS
   GenBahis — Sports Betting Platform
   © 2024 GenBahis. All rights reserved.
   ============================================================ */
.auth-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.auth-footer a {
  color: #ffd600;
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.btn-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
}
.btn-eye:hover {
  color: #ffd600;
}
/* ============================================================
   22. TRUST BADGES
   ============================================================ */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}
.trust-badge {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
@media (max-width: 480px) {
  .remember-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}
