/* ═══════════════════════════════════════════════════════════════
   CASINO AUTH THEME — Login / Register / Forgot Password
   Matches the premium dark casino dashboard theme (dashboard.css)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --cas-auth-bg:        #0b0e14;
    --cas-auth-card:      rgba(18, 22, 36, 0.96);
    --cas-auth-card-2:    rgba(22, 28, 45, 0.92);
    --cas-auth-gold:      #ffd700;
    --cas-auth-gold-dim:  rgba(255, 215, 0, 0.15);
    --cas-auth-gold-brd:  rgba(255, 215, 0, 0.28);
    --cas-auth-purple:    #a855f7;
    --cas-auth-pink:      #ff007f;
    --cas-auth-green:     #22c55e;
    --cas-auth-text:      #f1f5f9;
    --cas-auth-text-sub:  #94a3b8;
    --cas-auth-border:    rgba(255, 255, 255, 0.08);
    --cas-auth-input-bg:  rgba(255, 255, 255, 0.06);
}

/* ── Page Background ───────────────────────────────────────── */
body.auth-page {
    background: var(--cas-auth-bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(168, 85, 247, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 215, 0, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 127, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--cas-auth-text);
}

/* Floating casino decor */
body.auth-page::before {
    content: '♠ ♥ ♦ ♣ 7 7 7';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    font-size: 7rem;
    line-height: 2.2;
    letter-spacing: 0.4em;
    color: var(--cas-auth-gold);
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    justify-content: center;
    overflow: hidden;
}

/* ── Auth Wrapper / Card ───────────────────────────────────── */
.auth-page .login-wrapper,
.auth-page .registration-wrapper {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 24px 16px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page .login-card,
.auth-page .registration-card {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 215, 0, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(168, 85, 247, 0.18) 0%, transparent 55%),
        var(--cas-auth-card) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cas-auth-gold-brd) !important;
    border-radius: 20px !important;
    padding: 36px 32px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--cas-auth-text);
}

.auth-page .login-card {
    max-width: 450px;
}

.auth-page .registration-card {
    max-width: 600px;
    width: 100%;
}

/* Auth logo */
.auth-page .login-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #7b2ff7 60%, #ff004c);
    padding: 6px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.35);
    margin-bottom: 22px;
}

/* Headings */
.auth-page .login-card h2,
.auth-page .registration-card h2,
.auth-page .login-card h1,
.auth-page .registration-card h1,
.auth-page .login-card h3,
.auth-page .registration-card h3 {
    color: var(--cas-auth-text) !important;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 900;
    margin-bottom: 8px;
}

.auth-page .login-card p,
.auth-page .registration-card p,
.auth-page .login-card .form-group label,
.auth-page .registration-card .form-group label,
.auth-page .registration-card .checkbox-group label,
.auth-page .login-card .form-group label {
    color: var(--cas-auth-text-sub) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-page .login-card .form-group label,
.auth-page .registration-card .form-group label {
    color: var(--cas-auth-text) !important;
}

/* ── Form inputs ───────────────────────────────────────────── */
.auth-page .form-control,
.auth-page input[type="text"],
.auth-page input[type="email"],
.auth-page input[type="password"],
.auth-page input[type="tel"],
.auth-page input[type="number"],
.auth-page select,
.auth-page textarea {
    background: var(--cas-auth-input-bg) !important;
    border: 1px solid var(--cas-auth-border) !important;
    color: var(--cas-auth-text) !important;
    border-radius: 12px !important;
    padding: 13px 16px !important;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.auth-page .form-control::placeholder,
.auth-page input::placeholder {
    color: #64748b !important;
}

.auth-page .form-control:focus {
    border-color: var(--cas-auth-purple) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.auth-page .form-control:-webkit-autofill,
.auth-page input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #1a2033 inset !important;
    -webkit-text-fill-color: var(--cas-auth-text) !important;
    caret-color: var(--cas-auth-text) !important;
}

/* ── Password toggle ───────────────────────────────────────── */
.auth-page .password-wrapper {
    position: relative;
}

.auth-page .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cas-auth-text-sub);
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
}

/* ── Buttons ───────────────────────────────────────────────── */
.auth-page .btn-login-submit,
.auth-page .btn-register-submit,
.auth-page button[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 40px;
    color: #fff !important;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff007f 0%, #7b2ff7 55%, #ffd700 130%);
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.4);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    text-transform: uppercase;
}

.auth-page .btn-login-submit:hover,
.auth-page .btn-register-submit:hover,
.auth-page button[type="submit"]:hover {
    transform: translateY(-2px);
    opacity: 0.94;
}

.auth-page .btn-login-submit:disabled,
.auth-page .btn-register-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Links / alerts ────────────────────────────────────────── */
.auth-page .login-card a,
.auth-page .registration-card a,
.auth-page .login-card .forgot-link {
    color: var(--cas-auth-gold) !important;
    text-decoration: none;
    font-weight: 700;
}

.auth-page .alert {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-weight: 700;
    color: #ffffff !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 4px 16px rgba(255, 0, 127, 0.35);
}

.auth-page .alert-danger {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.92), rgba(123, 47, 247, 0.92)) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
}

.auth-page .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.92)) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
}

/* ── Checkbox groups ───────────────────────────────────────── */
.auth-page .checkbox-group label {
    color: var(--cas-auth-text-sub) !important;
    font-weight: 500;
}

.auth-page .checkbox-group a {
    color: var(--cas-auth-gold) !important;
}

.auth-page .checkbox-group input[type="checkbox"] {
    accent-color: var(--cas-auth-gold);
    transform: scale(1.15);
}

/* ── Inviter box (register footer) ─────────────────────────── */
.auth-page .inviter-box-container {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--cas-auth-border);
    margin: 0 -32px -36px -32px !important;
    border-radius: 0 0 20px 20px;
    padding: 20px;
}

.auth-page .inviter-box label {
    color: var(--cas-auth-gold) !important;
}

/* ── Header on auth pages ──────────────────────────────────── */
.auth-page .header-container {
    background: rgba(11, 14, 20, 0.92) !important;
    border-bottom: 1px solid var(--cas-auth-border) !important;
    backdrop-filter: blur(14px);
    z-index: 5;
}

/* ── Footer on auth pages ──────────────────────────────────── */
.auth-page .main-footer {
    position: relative;
    z-index: 1;
    background: rgba(11, 14, 20, 0.96) !important;
    border-top: 1px solid var(--cas-auth-border) !important;
}

.auth-page .main-footer h3,
.auth-page .main-footer a,
.auth-page .main-footer p {
    color: var(--cas-auth-text-sub) !important;
}

.auth-page .copyright-text {
    color: var(--cas-auth-text-sub) !important;
}

/* ── Responsive ────────────────────────────────────────────── */

/* ── Searchable Country Picker & Flag Dropdown ────────────── */
.country-picker-container {
    position: relative;
    width: 100%;
}

.country-picker-trigger {
    width: 100%;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 12px !important;
    color: #10b981 !important;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.country-picker-trigger:hover,
.country-picker-trigger:focus {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.7) !important;
}

.cp-flag-wrap {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.cp-flag-img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.cp-country-name {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-chevron {
    font-size: 0.85rem;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.country-picker-container.open .cp-chevron {
    transform: rotate(180deg);
}

.country-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #111827;
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.85);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.country-search-box {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: #1f2937;
}

.country-search-box .search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.country-search-box input {
    width: 100% !important;
    padding: 9px 12px 9px 34px !important;
    background: #0f172a !important;
    border: 1px solid rgba(52, 211, 153, 0.3) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 0.88rem !important;
    outline: none !important;
}

.country-search-box input:focus {
    border-color: #10b981 !important;
}

.country-list {
    max-height: 230px;
    overflow-y: auto;
    padding: 6px 0;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
}

.country-option:hover,
.country-option.selected {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.country-option .opt-flag {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.country-option .opt-name {
    flex: 1;
}

.country-option .opt-code {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
}

