/* ═══════════════════════════════════════════════════════════════════
   PARIMONI BET — LOGIN & SIGN-UP STYLESHEET (login.css)
   Ultra-luxurious dark VIP theme matching Parimoni Bet design language.
═══════════════════════════════════════════════════════════════════ */

:root {
    --bg-dark: #070a12;
    --bg-card: rgba(14, 20, 32, 0.94);
    --bg-input: #0a0e17;
    --border-card: rgba(255, 255, 255, 0.1);
    --border-input: rgba(255, 255, 255, 0.14);
    --gold: #f0b90b;
    --gold-light: #ffd84d;
    --gold-dark: #d99a00;
    --gold-gradient: linear-gradient(135deg, #ffd84d 0%, #f0b90b 50%, #ff9f1c 100%);
    --gold-glow: rgba(240, 185, 11, 0.4);
    --gold-soft: rgba(240, 185, 11, 0.1);
    --txt-primary: #f8fafc;
    --txt-secondary: #94a3b8;
    --txt-muted: #64748b;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(240, 185, 11, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 10% 30%, rgba(226, 19, 110, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 90% 70%, rgba(0, 168, 235, 0.05) 0%, transparent 45%),
        linear-gradient(180deg, #070a12 0%, #030508 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    color: var(--txt-primary);
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Floating Glow Orbs - Subtle & Premium */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
}

.ambient-orb-1 {
    width: 280px;
    height: 280px;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 240, 255, 0.06);
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.ambient-orb-2 {
    width: 220px;
    height: 220px;
    bottom: 5%;
    left: 10%;
    background: rgba(255, 23, 68, 0.05);
}

.ambient-orb-3 {
    display: none;
}

@keyframes floatGlow {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(18px); }
}

/* ── Top Header Brand ── */
.auth-header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    z-index: 1;
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════
   PARIMONI BET — TIER-1 PRO BETTING EMBLEM (15-YR SENIOR UI/UX)
   ════════════════════════════════════════════════════════════════ */
@keyframes parimoniChromeGleam {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.45));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 2px 10px rgba(255, 23, 68, 0.5));
    }
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.45));
    }
}

@keyframes betBadgeGlow {
    0% {
        border-color: rgba(0, 229, 255, 0.65);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 229, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    }
    50% {
        border-color: rgba(255, 23, 68, 0.75);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 23, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    }
    100% {
        border-color: rgba(0, 229, 255, 0.65);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 229, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    }
}

.bdt-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    user-select: none;
    position: relative;
    transform: skewX(-8deg);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bdt-logo:hover {
    transform: skewX(-8deg) scale(1.05) translateY(-2px);
}

.bdt-logo-top {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    
    background: linear-gradient(
        180deg,
        #FFFFFF 0%,
        #D8F5FF 14%,
        #00E5FF 32%,
        #0055FF 50%,
        #1A002E 53%,
        #FF0055 72%,
        #FF1744 88%,
        #FFE0E6 100%
    );
    background-size: 260% 260%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    -webkit-text-stroke: 0.9px rgba(255, 255, 255, 0.65);
    paint-order: stroke fill;
    
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6),
        1px 1px 0 #1e293b,
        2px 2px 0 #162032,
        3px 3px 0 #0f172a,
        4px 4px 1px #000000,
        5px 5px 12px rgba(0, 0, 0, 0.9);
        
    animation: parimoniChromeGleam 5s ease-in-out infinite;
}

.bdt-logo-sub {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 9.5px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    padding: 3px 9px 2px 11px;
    border-radius: 5px;
    margin-top: 0;
    
    background: linear-gradient(135deg, #FF1744 0%, #B70028 50%, #0044CC 85%, #00E5FF 100%);
    background-size: 250% 100%;
    border: 1.2px solid rgba(255, 255, 255, 0.6);
    
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -1.5px 0 rgba(0, 0, 0, 0.5);
        
    animation: betBadgeGlow 5s ease-in-out infinite;
}

.auth-header-tagline {
    font-size: 12px;
    color: var(--txt-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ── Main Auth Card ── */
.auth-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    width: 440px;
    max-width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(240, 185, 11, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1;
    overflow: hidden;
}

/* Top Accent Gradient Bar */
.auth-accent-bar {
    height: 3px;
    width: 100%;
    background: var(--gold-gradient);
}

.auth-card-body {
    padding: 32px 28px;
}

/* ── Segmented Tab Switcher (Sign In vs Sign Up) ── */
.auth-tab-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 24px;
    position: relative;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--txt-secondary);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-tab-btn:hover {
    color: #ffffff;
}

.auth-tab-btn.active {
    background: var(--gold-gradient);
    color: #0b0e14 !important;
    font-weight: 900;
    box-shadow: 0 4px 18px rgba(240, 185, 11, 0.45);
}

/* ── Forms ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--txt-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label-sub {
    font-size: 11px;
    color: var(--txt-muted);
    font-weight: 500;
}

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--txt-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: 12px;
    padding: 13px 42px 13px 44px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.auth-input::placeholder {
    color: #475569;
    font-weight: 500;
}

.auth-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 16px var(--gold-glow);
    background: #0d121c;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--txt-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #ffffff;
}

/* Remember / Forgot row */
.auth-extras-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-top: -4px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--txt-secondary);
    cursor: pointer;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    accent-color: var(--gold);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.forgot-link {
    color: var(--txt-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.forgot-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Submit Button — Tactile Gold Ingot (Tier-1 Betting Standard) */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(180deg, #FFE366 0%, #FFC700 38%, #F59E0B 75%, #D97706 100%);
    color: #1a0f00 !important;
    border: 1px solid #FFE066;
    border-radius: 14px;
    padding: 15px 20px;
    font-size: 14.5px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -2px 0 rgba(0, 0, 0, 0.25),
        0 6px 24px rgba(245, 158, 11, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 6px;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
.auth-submit-btn:hover::after {
    left: 140%;
}

.auth-submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -2px 0 rgba(0, 0, 0, 0.25),
        0 8px 30px rgba(245, 158, 11, 0.65),
        0 2px 6px rgba(0, 0, 0, 0.7);
}

.auth-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.35),
        0 2px 6px rgba(245, 158, 11, 0.3);
}

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

/* Spinner inside button */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(0, 0, 0, 0.25);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    display: none;
}

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

/* ── Terms agreement row in Sign Up ── */
.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: var(--txt-muted);
    cursor: pointer;
    line-height: 1.4;
    user-select: none;
    margin-top: -2px;
}

.terms-label input[type="checkbox"] {
    accent-color: var(--gold);
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin-top: 1px;
}

.terms-label a {
    color: var(--gold);
    text-decoration: none;
}

.terms-label a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   OTP VERIFICATION SCREEN
═══════════════════════════════════════════════════════════════════ */
.otp-container {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.28s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.otp-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--gold-soft);
    border: 1.5px solid rgba(240, 185, 11, 0.4);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 25px var(--gold-glow);
}

.otp-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.otp-sub {
    font-size: 12px;
    color: var(--txt-secondary);
    margin-bottom: 18px;
    line-height: 1.5;
}

.otp-email-target {
    color: var(--gold-light);
    font-weight: 700;
}

/* 6-box OTP input row */
.otp-inputs-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
}

.otp-digit-input {
    width: 46px;
    height: 52px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    font-family: monospace;
    outline: none;
    transition: var(--transition);
}

.otp-digit-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 16px var(--gold-glow);
    background: #0d121c;
    transform: translateY(-2px);
}

.otp-resend-row {
    font-size: 11.5px;
    color: var(--txt-muted);
    margin-bottom: 20px;
}

.otp-resend-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    display: inline;
    padding: 0;
    margin-left: 4px;
}

.otp-resend-btn:disabled {
    color: var(--txt-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.otp-back-btn {
    background: none;
    border: none;
    color: var(--txt-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    transition: color 0.15s ease;
}

.otp-back-btn:hover {
    color: #ffffff;
}

/* ── Trust Badges Footer ── */
.auth-trust-footer {
    padding: 14px 24px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 11px;
    color: var(--txt-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Toast Alert ── */
.auth-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #1e293b;
    border: 1px solid rgba(240, 185, 11, 0.4);
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(240, 185, 11, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.auth-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
    .auth-card-body {
        padding: 24px 20px;
    }
    .otp-digit-input {
        width: 40px;
        height: 46px;
        font-size: 18px;
    }
}
