/* ===================================================================
   ARQUIVO: css/pages/register.css
   DESCRIÇÃO: Estilo do Registro (Modal Fixo + Layout Ajustado)
   =================================================================== */

/* --- HEADER SIMPLES --- */
.game-header-simple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    z-index: 50;
}

/* O Botão Voltar (Posição específica para esta página) */
.btn-back-simple {
    position: absolute;
    left: 40px;
}

/* --- LOGO SOLTO --- */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-area img {
    height: 60px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

.logo-area span {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    white-space: nowrap; 
}

/* --- TÍTULO ESPECÍFICO (Nova Classe para não brigar com a Home) --- */
.register-title {
    font-size: 24px; /* Desktop: Tamanho normal */
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 30px; /* Mais espaço no Desktop também */
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border-left: 4px solid #b2d13a; 
    padding-left: 15px;
    text-align: left; 
}

.hero-subtitle {
    font-size: 14px;
    color: #b2d13a;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
    text-align: left;
}

/* Labels alinhados à Esquerda */
.label-clean {
    color: #ccc;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    text-align: left !important;
    width: 100%;
}

/* Inputs */
.input-game {
    background: rgba(0, 0, 0, 0.6); 
    border: 1px solid #444;
    color: #fff;
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.3s;
    outline: none;
}

.input-game:focus {
    border-color: #b2d13a;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 8px rgba(178, 209, 58, 0.2);
}

.btn-finish {
    background: #b2d13a;
    color: #000;
    font-weight: 900;
    border: none;
    padding: 12px 40px; 
    border-radius: 30px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 25px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    min-width: 220px; 
}

.btn-finish:hover {
    transform: scale(1.05);
    background: #fff;
    color: #000;
}

.btn-finish:disabled {
    background: #555;
    cursor: not-allowed;
    color: #888;
}

/* --- CARD PREVIEW --- */
.card-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.helper-text {
    color: #aaa;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.camera-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    display: none;
    text-shadow: 0 0 10px #000;
}

.card-face-box:hover .camera-overlay-icon {
    display: block;
}
.card-face-box:hover img {
    filter: brightness(0.5);
}

/* =========================================
   MODAL DA CÂMERA (CORREÇÃO DE POSIÇÃO)
   ========================================= */
.camera-modal-overlay {
    position: fixed; /* MUDANÇA CRUCIAL: Fixa na tela */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999; /* Fica acima de tudo */
    
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.camera-modal-content {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.video-wrapper {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid #b2d13a;
    background: #000;
}

#webcam-video {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1);
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* =========================================
   SCROLL INTELIGENTE (Esconde UI ao descer)
   ========================================= */
body.scrolled-mode .game-header-simple,
body.scrolled-mode .music-floater {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

/* =========================================
   MOBILE FIX (Celular)
   ========================================= */
@media (max-width: 991px) {
    .main-content-wrapper {
        min-height: 120vh;
        padding-bottom: 50px;
        padding-top: 90px !important;
    }

    .game-header-simple {
        height: 80px;
        padding: 0 10px;
        justify-content: center;
    }

    .btn-back-simple {
        left: 5px; 
    }
    
    .logo-area { gap: 8px; }
    .logo-area img { height: 35px !important; width: auto !important; }
    .logo-area span { display: block; font-size: 14px; letter-spacing: 1px; }
    
    /* CORREÇÃO DO TÍTULO NO MOBILE */
    .register-title {
        font-size: 18px; 
        margin-bottom: 40px; 
        text-align: center;
        border-left: none;
        padding-left: 0;
    }

    .form-column {
        text-align: left;
        padding: 0 20px;
    }

    .btn-finish {
        width: 100%;
    }
}