/* Brabo Poker — Splash / Auth (estilo PPPOKER) */
:root {
    --bp-bg: #1a1a1a;
    --bp-panel: #242424;
    --bp-green: #3d9a4f;
    --bp-green-light: #5cb86a;
    --bp-green-dark: #2d7a3e;
    --bp-text: #ffffff;
    --bp-muted: #9ca3af;
    --bp-line: #4b5563;
    --bp-accent-glow: #00e5a0;
}

html.brabo-auth-pending,
html.brabo-auth-pending body {
    overflow: hidden;
    height: 100%;
    margin: 0;
    background: #000;
}

html.brabo-auth-pending #__nuxt,
html.brabo-auth-pending #teleports {
    display: none !important;
}

#brabo-splash {
    position: fixed;
    inset: 0;
    z-index: 999999;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--bp-text);
    background: var(--bp-bg);
}

.splash-view {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.splash-view.active {
    display: flex;
    opacity: 1;
}

/* === LOADER === */
#view-loader {
    justify-content: flex-end;
    background: #0a1628 center top / cover no-repeat url('/public-assets/auth/loader-bg.png?v=2');
}

.loader-version {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.loader-bottom {
    width: 100%;
    padding: 0 0 28px;
    text-align: center;
}

.loader-text {
    font-size: 15px;
    margin-bottom: 12px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.loader-bar {
    height: 4px;
    width: 100%;
    background: rgba(0,0,0,0.5);
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--bp-accent-glow), #00ffcc, var(--bp-accent-glow), transparent);
    background-size: 200% 100%;
    animation: loader-shimmer 1.2s linear infinite;
    transition: width 0.15s ease;
    box-shadow: 0 0 12px var(--bp-accent-glow);
}

@keyframes loader-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === HOME === */
#view-home {
    background: var(--bp-bg);
    padding: 24px;
}

.splash-lang {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bp-green);
    background: transparent;
    color: var(--bp-green);
    font-size: 18px;
    cursor: pointer;
}

.splash-logo {
    text-align: center;
    margin-bottom: 32px;
}

.splash-logo-img {
    max-width: 260px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
}

.splash-logo-img.small {
    max-width: 180px;
    width: 55%;
}

.splash-logo-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
}

.splash-logo-icon svg {
    width: 100%;
    height: 100%;
}

.splash-logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.splash-logo-text .green { color: var(--bp-green-light); }
.splash-logo-text .white { color: #fff; }

.splash-actions {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-splash {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, var(--bp-green-light) 0%, var(--bp-green-dark) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: filter 0.15s;
}

.btn-splash:hover { filter: brightness(1.08); }
.btn-splash:active { filter: brightness(0.95); }

.splash-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--bp-muted);
    font-size: 14px;
    width: 100%;
    max-width: 320px;
}

.splash-or::before,
.splash-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bp-line);
}

.social-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.social-btn.fb { background: #1877f2; }
.social-btn.gg { background: #fff; color: #4285f4; font-family: serif; }
.social-btn.tg { background: #29b6f6; }

.splash-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--bp-muted);
}

.splash-footer a {
    color: var(--bp-muted);
    text-decoration: none;
}

.splash-feedback {
    margin-top: 16px;
    font-size: 13px;
    color: var(--bp-muted);
    cursor: pointer;
}

/* === LOGIN / REGISTER MODAL VIEWS === */
.auth-panel {
    width: 100%;
    max-width: 360px;
    padding: 32px 28px 24px;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--bp-green-light);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.auth-field {
    margin-bottom: 28px;
}

.auth-field label {
    display: block;
    font-size: 14px;
    color: var(--bp-muted);
    margin-bottom: 8px;
}

.auth-field input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--bp-line);
    color: #fff;
    font-size: 16px;
    padding: 8px 0;
    outline: none;
}

.auth-field input:focus {
    border-bottom-color: var(--bp-green);
}

.auth-field.password-wrap {
    position: relative;
}

.auth-toggle-pw {
    position: absolute;
    right: 0;
    bottom: 8px;
    background: none;
    border: none;
    color: var(--bp-muted);
    cursor: pointer;
    font-size: 18px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--bp-muted);
    cursor: pointer;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--bp-green);
}

.btn-auth-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #555 0%, #333 100%);
    margin-bottom: 16px;
}

.btn-auth-submit:hover { filter: brightness(1.1); }

.auth-forgot {
    text-align: center;
    font-size: 14px;
    color: var(--bp-muted);
    margin-bottom: 24px;
    cursor: pointer;
}

.auth-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-error.visible { display: block; }

#view-login,
#view-register {
    background: var(--bp-bg);
}

@media (min-width: 768px) {
    .splash-actions,
    .splash-or { max-width: 380px; }
    .auth-panel { max-width: 400px; }
}
