/* ═══════════════════════════════════════════════════════════
   COINRUSH — Premium Auth Modal
   Top-tier crypto casino authentication experience
   Dark glass with emerald/cyan accent system
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --auth-bg:          #080b10;
  --auth-surface:     #0e1218;
  --auth-surface-2:   #141922;
  --auth-border:      rgba(255,255,255,0.05);
  --auth-border-hover:rgba(255,255,255,0.09);
  --auth-green:       #4fffb0;
  --auth-green-dim:   rgba(79,255,176,0.12);
  --auth-cyan:        #06b6d4;
  --auth-purple:      #8b5cf6;
  --auth-red:         #ff4466;
  --auth-gold:        #fbbf24;
  --auth-text:        #f0f4f8;
  --auth-text-dim:    rgba(240,244,248,0.4);
  --auth-text-muted:  rgba(240,244,248,0.2);
  --auth-radius:      22px;
  --auth-radius-sm:   14px;
  --auth-ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --auth-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════
   OVERLAY — Deep frosted backdrop
   ═══════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,3,8,0.82);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: authOverlayIn 0.25s var(--auth-ease) both;
}

@keyframes authOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════
   MODAL SHELL — Glass card with glow ring
   ═══════════════════════════════════════════ */
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--auth-radius);
  background: linear-gradient(170deg, #12161e 0%, #0a0e14 45%, #10141c 100%);
  border: 1px solid var(--auth-border);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.55),
    0 16px 48px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.02),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: authModalIn 0.35s var(--auth-ease) both;
  overflow: hidden;
}

@keyframes authModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-inner {
  position: relative;
  z-index: 3;
  padding: 36px 32px 28px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(79,255,176,0.12) transparent;
}
.auth-modal-inner::-webkit-scrollbar { width: 3px; }
.auth-modal-inner::-webkit-scrollbar-track { background: transparent; }
.auth-modal-inner::-webkit-scrollbar-thumb {
  background: rgba(79,255,176,0.15);
  border-radius: 3px;
}

/* ── Border Ring — removed, static border only ── */
.auth-border-ring {
  display: none;
}

/* ── Ambient Glow Orbs — removed ── */
.auth-ambient {
  display: none;
}

/* ═══════════════════════════════════════════
   CLOSE BUTTON
   ═══════════════════════════════════════════ */
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  color: var(--auth-text-muted);
  cursor: pointer;
  transition: all 0.3s var(--auth-ease);
  z-index: 5;
  padding: 0;
}
.auth-close svg { width: 13px; height: 13px; }
.auth-close:hover {
  background: rgba(255,70,70,0.08);
  border-color: rgba(255,70,70,0.15);
  color: var(--auth-red);
  transform: rotate(90deg) scale(1.1);
}

/* ═══════════════════════════════════════════
   BRAND / LOGO
   ═══════════════════════════════════════════ */
.auth-brand {
  text-align: center;
  margin-bottom: 24px;
  animation: authFadeUp 0.45s var(--auth-ease) 0.1s both;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.auth-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4fffb0 0%, #00d68f 50%, #00b876 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.auth-logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: inherit;
}
.auth-logo-icon span {
  font-size: 14px;
  font-weight: 900;
  color: #060d08;
  letter-spacing: -0.5px;
  line-height: 1;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  position: relative;
  z-index: 1;
}

.auth-logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2.5px;
  background: linear-gradient(135deg, #4fffb0, #7affcc, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
}

.auth-logo-subtitle {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 3.2px;
  color: var(--auth-text-muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.auth-brand-tagline {
  font-size: 13px;
  color: var(--auth-text-dim);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.15px;
}

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   SIGN UP PERKS — Trust badges
   ═══════════════════════════════════════════ */
.auth-perks {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  animation: authFadeUp 0.45s var(--auth-ease) 0.15s both;
  flex-wrap: wrap;
}

.auth-perk {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(79,255,176,0.03);
  border: 1px solid rgba(79,255,176,0.07);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--auth-text-dim);
  white-space: nowrap;
  transition: all 0.3s var(--auth-ease);
}
.auth-perk:hover {
  background: rgba(79,255,176,0.06);
  border-color: rgba(79,255,176,0.12);
  color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.auth-perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-green);
  flex-shrink: 0;
  line-height: 1;
}
.auth-perk-icon svg {
  width: 12px;
  height: 12px;
}

/* ═══════════════════════════════════════════
   STEP PROGRESS — 3-step indicator
   ═══════════════════════════════════════════ */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  padding: 0 8px;
  animation: authFadeUp 0.45s var(--auth-ease) 0.18s both;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.25;
  transition: all 0.4s var(--auth-ease);
}
.auth-step.active { opacity: 1; }
.auth-step.done { opacity: 0.65; }

.auth-step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--auth-text-dim);
  transition: all 0.4s var(--auth-spring);
  flex-shrink: 0;
}
.auth-step.active .auth-step-num {
  background: var(--auth-green-dim);
  border-color: rgba(79,255,176,0.3);
  color: var(--auth-green);
  box-shadow: 0 0 14px rgba(79,255,176,0.12);
}
.auth-step.done .auth-step-num {
  background: var(--auth-green);
  border-color: var(--auth-green);
  color: #060d08;
  box-shadow: 0 0 10px rgba(79,255,176,0.2);
}

.auth-step span {
  font-size: 11px;
  font-weight: 600;
  color: var(--auth-text-muted);
  letter-spacing: 0.3px;
  transition: color 0.3s;
}
.auth-step.active span { color: rgba(255,255,255,0.65); }
.auth-step.done span { color: var(--auth-green); }

.auth-step-line {
  width: 30px;
  height: 2px;
  background: rgba(255,255,255,0.05);
  margin: 0 6px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   MODE TABS — Segmented control
   ═══════════════════════════════════════════ */
.auth-tabs {
  display: flex;
  position: relative;
  background: rgba(255,255,255,0.025);
  border-radius: var(--auth-radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--auth-border);
  animation: authFadeUp 0.45s var(--auth-ease) 0.2s both;
}

.auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: none;
  border: none;
  color: var(--auth-text-muted);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.35s var(--auth-ease);
  font-family: inherit;
}
.auth-tab svg {
  opacity: 0.4;
  transition: all 0.35s var(--auth-ease);
}
.auth-tab.active {
  color: #fff;
}
.auth-tab.active svg {
  opacity: 1;
  color: var(--auth-green);
}
.auth-tab:hover:not(.active) {
  color: rgba(255,255,255,0.45);
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, rgba(79,255,176,0.08), rgba(6,182,212,0.04));
  border: 1px solid rgba(79,255,176,0.1);
  border-radius: calc(var(--auth-radius-sm) - 2px);
  transition: left 0.4s var(--auth-spring);
  z-index: 1;
  box-shadow: 0 2px 12px rgba(79,255,176,0.04);
}
.auth-tab-indicator.right {
  left: calc(50%);
}

/* ═══════════════════════════════════════════
   FORM
   ═══════════════════════════════════════════ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: authFadeUp 0.45s var(--auth-ease) 0.22s both;
  min-width: 0;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   MESSAGES — Alert cards
   ═══════════════════════════════════════════ */
.auth-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--auth-radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  animation: authMsgIn 0.35s var(--auth-spring);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-message svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.auth-message-error {
  background: rgba(255,68,102,0.06);
  border: 1px solid rgba(255,68,102,0.1);
  color: var(--auth-red);
}
.auth-message-success {
  background: rgba(79,255,176,0.05);
  border: 1px solid rgba(79,255,176,0.1);
  color: var(--auth-green);
}

@keyframes authMsgIn {
  0%   { transform: translateY(-6px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════
   FIELD / LABEL
   ═══════════════════════════════════════════ */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.auth-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--auth-text-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.auth-field:focus-within .auth-label {
  color: rgba(79,255,176,0.65);
}

/* ═══════════════════════════════════════════
   INPUT BOX
   ═══════════════════════════════════════════ */
.auth-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  display: flex;
  color: var(--auth-text-muted);
  pointer-events: none;
  transition: all 0.3s var(--auth-ease);
  z-index: 2;
}
.auth-input-box:focus-within .auth-input-icon {
  color: var(--auth-green);
  filter: drop-shadow(0 0 5px rgba(79,255,176,0.25));
}

.auth-input {
  width: 100%;
  padding: 13px 16px 13px 46px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  color: var(--auth-text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.3s var(--auth-ease);
  box-sizing: border-box;
  min-width: 0;
}
.auth-input::placeholder {
  color: var(--auth-text-muted);
  font-weight: 400;
}
.auth-input:hover {
  border-color: var(--auth-border-hover);
  background: rgba(255,255,255,0.035);
}
.auth-input:focus {
  border-color: rgba(79,255,176,0.25);
  background: rgba(79,255,176,0.02);
  box-shadow:
    0 0 0 3px rgba(79,255,176,0.05),
    0 2px 16px rgba(79,255,176,0.03);
}

/* ═══════════════════════════════════════════
   PHONE ROW
   ═══════════════════════════════════════════ */
.auth-phone-row {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.auth-phone-select {
  width: 115px;
  min-width: 0;
  flex-shrink: 0;
  padding: 13px 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  color: var(--auth-text);
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.3s var(--auth-ease);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234fffb0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
  box-sizing: border-box;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.auth-phone-select:focus {
  border-color: rgba(79,255,176,0.25);
  box-shadow: 0 0 0 3px rgba(79,255,176,0.05);
}
.auth-phone-select option {
  background: var(--auth-surface);
  color: var(--auth-text);
}

.auth-phone-input {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.auth-phone-code {
  position: absolute;
  left: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-green);
  pointer-events: none;
  z-index: 2;
}
.auth-phone-input .auth-input {
  padding-left: 54px;
}

/* ═══════════════════════════════════════════
   EYE TOGGLE
   ═══════════════════════════════════════════ */
.auth-eye {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--auth-text-muted);
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  transition: all 0.25s var(--auth-spring);
  z-index: 2;
}
.auth-eye svg { width: 15px; height: 15px; }
.auth-eye:hover {
  color: var(--auth-green);
  background: rgba(79,255,176,0.05);
  transform: scale(1.08);
}

/* ═══════════════════════════════════════════
   FORGOT LINK
   ═══════════════════════════════════════════ */
.auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}
.auth-forgot-link {
  background: none;
  border: none;
  color: var(--auth-text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
  transition: all 0.25s;
  position: relative;
}
.auth-forgot-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--auth-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--auth-ease);
}
.auth-forgot-link:hover {
  color: var(--auth-green);
}
.auth-forgot-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ═══════════════════════════════════════════
   PASSWORD STRENGTH
   ═══════════════════════════════════════════ */
.auth-pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.auth-pw-bar-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: hidden;
}

.auth-pw-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s var(--auth-spring), background 0.4s;
  box-shadow: 0 0 8px currentColor;
}

.auth-pw-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 44px;
  text-align: right;
  text-transform: uppercase;
}

/* ── Password Requirements ── */
.auth-pw-reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin-top: 6px;
}

.auth-pw-reqs span {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--auth-text-muted);
  transition: all 0.3s var(--auth-ease);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.auth-pw-reqs span.met {
  color: var(--auth-green);
  text-shadow: 0 0 6px rgba(79,255,176,0.15);
}

/* ── Input Error State ── */
.auth-input-error {
  border-color: rgba(255,68,102,0.3) !important;
}
.auth-input-error:focus {
  border-color: rgba(255,68,102,0.45) !important;
  box-shadow: 0 0 0 3px rgba(255,68,102,0.05) !important;
}

.auth-field-error {
  font-size: 11px;
  color: var(--auth-red);
  margin-top: 3px;
  font-weight: 500;
}

/* ── Username Hint ── */
.auth-username-hint {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--auth-text-muted);
  transition: color 0.3s var(--auth-ease);
  margin-top: 2px;
}
.auth-username-hint.valid {
  color: rgba(79,255,176,0.45);
}

/* ═══════════════════════════════════════════
   AGE VERIFICATION BUTTON
   ═══════════════════════════════════════════ */
.auth-age-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  background: rgba(255,255,255,0.015);
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: var(--auth-radius-sm);
  color: var(--auth-text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.35s var(--auth-ease);
  position: relative;
  overflow: hidden;
}
.auth-age-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(79,255,176,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.auth-age-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: all 0.35s var(--auth-spring);
}
.auth-age-btn:hover {
  border-color: rgba(79,255,176,0.12);
  background: rgba(79,255,176,0.02);
  color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.auth-age-btn:hover::before { opacity: 1; }
.auth-age-btn:hover svg { transform: scale(1.08); }
.auth-age-btn.verified {
  border-style: solid;
  border-color: rgba(79,255,176,0.18);
  background: rgba(79,255,176,0.04);
  color: var(--auth-green);
  box-shadow: 0 2px 12px rgba(79,255,176,0.04);
}
.auth-age-btn.verified svg {
  color: var(--auth-green);
  filter: drop-shadow(0 0 4px rgba(79,255,176,0.3));
}

/* ── Phone Verification Note ── */
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(79,255,176,0.02);
  border: 1px solid rgba(79,255,176,0.05);
  border-radius: 12px;
  font-size: 11.5px;
  color: var(--auth-text-dim);
  line-height: 1.5;
}
.auth-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: rgba(79,255,176,0.45);
  margin-top: 1px;
}

/* ═══════════════════════════════════════════
   SUBMIT BUTTON — Premium CTA
   ═══════════════════════════════════════════ */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 0;
  background: linear-gradient(135deg, #4fffb0 0%, #00e89e 40%, #00d68f 100%);
  border: none;
  border-radius: var(--auth-radius-sm);
  color: #060d08;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: 'Sora', 'Inter', inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--auth-spring);
  box-shadow:
    0 4px 20px rgba(79,255,176,0.18),
    0 8px 40px rgba(79,255,176,0.08),
    inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 0 rgba(255,255,255,0.12);
}
.auth-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--auth-spring);
}
.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 8px 32px rgba(79,255,176,0.28),
    0 16px 60px rgba(79,255,176,0.12),
    0 0 60px rgba(79,255,176,0.08),
    inset 0 1px 0 rgba(255,255,255,0.25);
  filter: brightness(1.05);
}
.auth-submit:hover:not(:disabled) svg {
  transform: translateX(3px) scale(1.08);
}
.auth-submit:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
}

/* Shimmer sweep */
.auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.06) 42%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.06) 58%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
}
.auth-submit:hover:not(:disabled)::after {
  animation: authShimmer 0.8s var(--auth-ease) forwards;
}

@keyframes authShimmer {
  to { transform: translateX(120%); }
}

.auth-submit:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.3);
}

/* ── Spinner ── */
.auth-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(0,0,0,0.1);
  border-top-color: #060d08;
  border-radius: 50%;
  animation: authSpin 0.6s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.auth-divider span {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--auth-text-muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   OAUTH ROW — Social login buttons
   ═══════════════════════════════════════════ */
.auth-oauth-row {
  display: flex;
  gap: 8px;
}

.auth-oauth-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s var(--auth-spring);
  position: relative;
  overflow: hidden;
}
.auth-oauth-pill svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.3s var(--auth-spring);
}
.auth-oauth-pill:hover:not(:disabled) svg {
  transform: scale(1.12) rotate(-3deg);
}

/* Discord */
.auth-oauth-discord { color: #5865F2; }
.auth-oauth-discord:hover:not(:disabled) {
  background: rgba(88,101,242,0.06);
  border-color: rgba(88,101,242,0.15);
  box-shadow: 0 4px 18px rgba(88,101,242,0.08);
  transform: translateY(-2px);
}

/* Google */
.auth-oauth-google span { color: rgba(255,255,255,0.6); }
.auth-oauth-google:hover:not(:disabled) {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* X / Twitter */
.auth-oauth-twitter { color: #fff; }
.auth-oauth-twitter:hover:not(:disabled) {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Disabled */
.auth-oauth-pill.disabled,
.auth-oauth-pill:disabled {
  opacity: 0.15;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-border);
  animation: authFadeUp 0.45s var(--auth-ease) 0.3s both;
}
.auth-footer p {
  font-size: 13px;
  color: var(--auth-text-dim);
  margin: 0;
}
.auth-switch {
  background: none;
  border: none;
  color: var(--auth-green);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: all 0.25s;
  position: relative;
}
.auth-switch:hover {
  filter: brightness(1.15);
  text-shadow: 0 0 10px rgba(79,255,176,0.25);
}

/* ── Responsible Gambling Footer ── */
.auth-rg-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.025);
}
.auth-rg-footer svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.12);
}
.auth-rg-footer span {
  font-size: 10px;
  color: rgba(255,255,255,0.12);
}
.auth-rg-footer a {
  color: rgba(79,255,176,0.35);
  text-decoration: none;
  transition: all 0.2s;
}
.auth-rg-footer a:hover {
  color: var(--auth-green);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   "NEW HERE?" NUDGE CARD — Login mode
   ═══════════════════════════════════════════ */
.auth-nudge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(79,255,176,0.03), rgba(6,182,212,0.02));
  border: 1px solid rgba(79,255,176,0.08);
  border-radius: var(--auth-radius-sm);
  cursor: pointer;
  transition: all 0.35s var(--auth-ease);
  margin-bottom: 16px;
  animation: authFadeUp 0.45s var(--auth-ease) 0.3s both;
}
.auth-nudge:hover {
  background: linear-gradient(135deg, rgba(79,255,176,0.06), rgba(6,182,212,0.04));
  border-color: rgba(79,255,176,0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79,255,176,0.06);
}

.auth-nudge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(79,255,176,0.06);
  border: 1px solid rgba(79,255,176,0.1);
  color: var(--auth-green);
  flex-shrink: 0;
}
.auth-nudge-icon svg { width: 16px; height: 16px; }

.auth-nudge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.auth-nudge-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-green);
  letter-spacing: 0.2px;
}
.auth-nudge-text span {
  font-size: 11.5px;
  color: var(--auth-text-dim);
  line-height: 1.4;
}

.auth-nudge-arrow {
  color: rgba(79,255,176,0.35);
  flex-shrink: 0;
  transition: all 0.3s var(--auth-spring);
}
.auth-nudge:hover .auth-nudge-arrow {
  color: var(--auth-green);
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════
   AGE VERIFICATION POPUP
   ═══════════════════════════════════════════ */
.age-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,3,8,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 16px;
  animation: authOverlayIn 0.25s var(--auth-ease) both;
  overflow: hidden;
}

.age-popup {
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(165deg, #12161e, #0a0e14 50%, #10141c);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 0;
  animation: authModalIn 0.35s var(--auth-ease) both;
  box-shadow:
    0 32px 100px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.02),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Scrollbar */
.age-popup::-webkit-scrollbar { width: 3px; }
.age-popup::-webkit-scrollbar-track { background: transparent; }
.age-popup::-webkit-scrollbar-thumb {
  background: rgba(79,255,176,0.12);
  border-radius: 3px;
}

.age-popup-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--auth-border);
}

.age-popup-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--auth-green-dim), rgba(6,182,212,0.05));
  border: 1px solid rgba(79,255,176,0.08);
  border-radius: 14px;
  color: var(--auth-green);
  flex-shrink: 0;
}

.age-popup-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
}

.age-popup-sub {
  font-size: 12px;
  color: var(--auth-text-dim);
  margin: 3px 0 0;
}

.age-popup-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  color: var(--auth-text-muted);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.3s var(--auth-spring);
}
.age-popup-close svg { width: 13px; height: 13px; }
.age-popup-close:hover {
  background: rgba(255,70,70,0.06);
  border-color: rgba(255,70,70,0.12);
  color: var(--auth-red);
  transform: rotate(90deg) scale(1.1);
}

/* ── Progress Bar ── */
.age-popup-progress {
  display: flex;
  gap: 6px;
  padding: 0 24px;
  margin-top: -2px;
  margin-bottom: 6px;
}
.age-popup-progress-dot {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  transition: all 0.4s var(--auth-spring);
}
.age-popup-progress-dot.filled {
  background: var(--auth-green);
  box-shadow: 0 0 8px rgba(79,255,176,0.15);
}

.age-popup-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Fields ── */
.age-popup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.age-popup-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--auth-text-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.age-popup-field input,
.age-popup-field select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  color: var(--auth-text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.3s var(--auth-ease);
  box-sizing: border-box;
}
.age-popup-field input:focus,
.age-popup-field select:focus {
  border-color: rgba(79,255,176,0.25);
  box-shadow: 0 0 0 3px rgba(79,255,176,0.05);
}
.age-popup-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234fffb0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 30px;
  cursor: pointer;
}
.age-popup-field select option {
  background: var(--auth-surface);
  color: var(--auth-text);
}

.age-popup-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.5);
  cursor: pointer;
}

/* ── Terms Checkboxes ── */
.age-popup-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  background: rgba(255,255,255,0.012);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.035);
  transition: all 0.3s var(--auth-ease);
}
.age-popup-terms:hover {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.age-popup-terms:has(input:checked) {
  background: rgba(79,255,176,0.03);
  border-color: rgba(79,255,176,0.1);
}
.age-popup-terms input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.025);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: all 0.3s var(--auth-spring);
}
.age-popup-terms input[type="checkbox"]:hover {
  border-color: rgba(79,255,176,0.25);
}
.age-popup-terms input[type="checkbox"]:checked {
  background: var(--auth-green);
  border-color: var(--auth-green);
  box-shadow: 0 2px 8px rgba(79,255,176,0.2);
}
.age-popup-terms input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #060d08;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.age-popup-terms span {
  font-size: 13px;
  color: var(--auth-text-dim);
  line-height: 1.55;
}
.age-popup-terms:has(input:checked) span {
  color: rgba(255,255,255,0.55);
}
.age-popup-terms a {
  color: var(--auth-green);
  text-decoration: none;
  font-weight: 600;
}
.age-popup-terms a:hover {
  text-decoration: underline;
}

/* Section Labels */
.age-popup-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--auth-text-muted);
  padding: 8px 0 2px;
  margin-top: 4px;
}
.age-popup-section-label:first-child {
  margin-top: 0;
  padding-top: 0;
}
.age-popup-section-label svg {
  color: rgba(79,255,176,0.35);
}

/* Optional */
.age-popup-optional {
  border-style: dashed;
  border-color: rgba(255,255,255,0.03);
  opacity: 0.55;
}
.age-popup-optional:hover { opacity: 1; }

/* ── Confirm Button ── */
.age-popup-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 48px);
  margin: 6px 24px 22px;
  padding: 14px 0;
  background: linear-gradient(135deg, #4fffb0, #00e89e, #00d68f);
  border: none;
  border-radius: var(--auth-radius-sm);
  color: #060d08;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Sora', 'Inter', inherit;
  transition: all 0.35s var(--auth-spring);
  box-shadow:
    0 4px 20px rgba(79,255,176,0.15),
    inset 0 1px 0 rgba(255,255,255,0.15);
  text-shadow: 0 1px 0 rgba(255,255,255,0.1);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.age-popup-confirm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.06) 42%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.06) 58%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.age-popup-confirm:hover:not(:disabled)::after {
  animation: authShimmer 0.8s var(--auth-ease) forwards;
}
.age-popup-confirm:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 8px 32px rgba(79,255,176,0.25),
    0 16px 60px rgba(79,255,176,0.1),
    inset 0 1px 0 rgba(255,255,255,0.2);
  filter: brightness(1.05);
}
.age-popup-confirm:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
}
.age-popup-confirm:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.3);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .auth-overlay { padding: 8px; }
  .auth-modal {
    border-radius: 20px;
    max-width: 100%;
  }
  .auth-modal-inner {
    padding: 28px 22px 22px;
    max-height: 92vh;
  }
  .auth-border-ring { border-radius: 20px; }
  .auth-tabs { border-radius: 12px; }
  .auth-tab-indicator { border-radius: 10px; }
  .auth-phone-row {
    flex-direction: column;
    gap: 8px;
  }
  .auth-phone-select { width: 100%; }
  .auth-oauth-pill span { display: none; }
  .auth-oauth-pill { padding: 14px 0; }
  .auth-perks { gap: 6px; }
  .auth-perk { padding: 4px 9px; font-size: 10px; }
  .auth-perk-icon svg { width: 11px; height: 11px; }
  .auth-steps { gap: 0; }
  .auth-step-line { width: 20px; margin: 0 4px; }
  .auth-step span { font-size: 10px; }
  .age-popup {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px;
  }
  .age-popup-body { padding: 18px 20px; }
  .age-popup-confirm {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 360px) {
  .auth-modal-inner { padding: 22px 18px 18px; }
  .auth-logo-icon { width: 38px; height: 38px; }
  .auth-logo-title { font-size: 15px; }
  .age-popup-header { padding: 18px 18px; }
  .age-popup-body { padding: 16px 18px; }
}
