* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* Declaração da fonte customizada Don José */
@font-face {
    font-family: 'DonJose-Black';
    src: url('../fonts/DonJose-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html, body {
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    
    display: flex;
    justify-content: flex-start; /* Colado total na esquerda */
    align-items: center;
    overflow: hidden;
}

/* Container Principal (1440px x 1024px conforme Figma) */
/* Container da tela */
.login-screen {
    position: relative;
    width: 100vw; /* Ocupa a largura total da janela */
    height: 1024px;
    background-color: rgba(255, 255, 255, 0.92);
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../img/cor_branco.png');
    background-blend-mode: normal;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* BANNER LATERAL AMARELO */
.banner-section {
    position: absolute;
    width: 601px;
    height: 100%;
    left: 0 !important;
    top: 0;
    /* background-color: #FDD722; */
    background-color: rgba(253, 215, 34, 0.9); /* fallback color with opacity */
    /* background-image moved to pseudo-element to allow image opacity */
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    box-shadow: 11px 11px 27px rgba(0, 0, 0, 0.17);
    z-index: 1;
    overflow: hidden; /* needed for pseudo-element clipping */
}

/* Background image placed in pseudo-element so we can control its opacity */
.banner-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/cor_yellow.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.6; /* ajuste a opacidade aqui (0.0 - 1.0) */
    z-index: 0;
    pointer-events: none;
}

/* Ensure any direct children appear above the pseudo-element */
.banner-section > * {
    position: relative;
    z-index: 1;
}
/* LOGO GAME STATION (GS - Marca PNG Horizontal) */
.logo-gs {
    position: absolute;
    width: 383px;
    height: 203px;
    left: 42px;
    top: 23px;
    z-index: 2;
}

/* --- MASCOTE (magnific_ajuste-os-olhos-do-tonhao) --- */
.mascote-img {
    position: absolute;
    width: 1023.046px;
    height: 1246.471px;
    opacity: 1;
    top: 49px;
    left: -375px;

    transform: rotate(25.64deg);
    
    /* Melhora a suavização e nitidez do elemento esticado/rotacionado */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    
    filter: drop-shadow(0px 14px 28px rgba(0, 0, 0, 0.25));
    z-index: 5;
    pointer-events: none;
}
/* --- CHAPÉU DE FESTA DO MASCOTE --- */
.chapeu-img {
    position: absolute;
    width: 478px; /* Tamanho proporcional à cabeça do mascote */
    height: 315px;
    
    /* Posição travada na cabeça do personagem */
    left: 144px;
    top: 79px;
    
    /* Acompanha a inclinação do mascote */
    transform: rotate(32.69deg);
    
    /* Sombra suave idêntica às camadas do Figma */
    filter: drop-shadow(2px 6px 12px rgba(0, 0, 0, 0.3));
    z-index: 6; /* Fica acima do mascote (z-index: 5) */
    pointer-events: none;
}

/* --- ÁREA DO FORMULÁRIO DE LOGIN (Lado Direito) --- */
.form-section {
    position: absolute;
    left: 920px;
    top: 199px;
    width: 664.11px;
    height: 640px;
    z-index: 10;
}

/* Retângulo Laranja no Fundo (Rectangle 11) */
.card-orange {
    position: absolute;
    width: 567px;
    height: 640px;
    left: 48px;
    top: 0px;
    background: #FF9500;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.43);
    border-radius: 27px;
}

/* Card Azul Frontal (Rectangle 10) */
.card-blue {
    position: absolute;
    width: 664px;
    height: 579px;
    left: -48px;
    top: 32px;
    background: linear-gradient(340.11deg, #0039A1 4.76%, #0095FF 43.47%, #0039A1 82.63%);
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.43);
    border-radius: 25px;
    padding: 35px 45px;
}

/* Títulos */
.title {
    /* font-family: 'Poppins', sans-serif; */
     /* font-family: 'Don José', 'Poppins', sans-serif; */
     font-family: 'DonJose-Black', sans-serif;
    font-weight: 900;
    font-size: 58px;
    line-height: 100%;
    color: #FFFFFF;
    text-align: center;
    margin-top: 10px;
}

.subtitle {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 100%;
    color: #FFFFFF;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 25px;
}

.highlight-yellow {
    color: #FDD722;
}

/* Bloco Branco dos Inputs */
.form-card-white {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 30px 25px 20px 25px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    color: #333333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    height: 48px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.input-group input::placeholder {
    color: #CBD5E1;
}

/* Botão Entrar */
.btn-entrar {
    width: 100%;
    height: 52px;
    background-color: #2CD152;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 900;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0px 4px 10px rgba(44, 209, 82, 0.3);
}

.forgot-wrapper {
    margin-top: 16px;
    text-align: left;
}

.forgot-link {
    color: #007bff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
}

.alert-error {
    background-color: #ff3333;
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}







/* ==========================================================================
   RESPONSIVIDADE (REGRAS ADICIONAIS SEM ALTERAR O CÓDIGO BASE)
   ========================================================================== */

/* 1. Laptops Grandes e Displays Médios (de 1440px até 1680px) */
@media (max-width: 1680px) and (min-width: 1281px) {
    .login-screen {
        height: 100vh;
    }

    .form-section {
        left: calc(100vw - 680px); /* Empurra o form para não estourar a tela */
        top: 50%;
        transform: translateY(-50%) scale(0.9);
        transform-origin: right center;
    }

    .banner-section {
        width: 38vw;
    }

    .mascote-img {
        width: 62vw;
        height: auto;
        left: -24vw;
    }

    .chapeu-img {
        width: 30vw;
        height: auto;
        left: 8vw;
    }
}

/* 2. Notebooks e Tablets Grandes como MacBook Air, Surface Duo Dobrado (de 1025px até 1280px) */
@media (max-width: 1280px) and (min-width: 1025px) {
    .login-screen {
        height: 100vh;
    }

    .banner-section {
        width: 35vw;
    }

    .logo-gs {
        width: 300px;
        height: auto;
        left: 15px;
        top: 0px;
    }

    .mascote-img {
        width: 65vw;
        height: auto;
        left: -28vw;
        top: 17px;
    }

    .chapeu-img {
        width: 32vw;
        height: auto;
        left: 6vw;
        top: 42px;
    }

    .form-section {
        left: auto;
        right: 20px;
        top: 50%;
        transform: translateY(-50%) scale(0.75);
        transform-origin: right center;
    }
}

/* 3. Tablets/Foldables em orientação paisagem (Ex: Surface Duo aberto 1114x705) */
@media (max-width: 1150px) and (min-width: 901px) {
    .login-screen {
        height: 100vh;
    }

    .banner-section {
        width: 32vw;
    }

    .logo-gs {
        width: 240px;
        height: auto;
        left: 10px;
        top: 10px;
    }

    .mascote-img {
        width: 60vw;
        height: auto;
        left: -26vw;
        top: 7px;
    }

    .chapeu-img {
        width: 28vw;
        height: auto;
        left: 6vw;
        top: 39px;
    }

    .form-section {
        left: auto;
        right: 10px;
        top: 50%;
        transform: translateY(-50%) scale(0.65);
        transform-origin: right center;
    }
}

/* 4. Tablets Retrato, Dispositivos Móveis e Celulares (Abaixo de 900px) */
@media (max-width: 900px) {
    html, body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .login-screen {
        width: 100%;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-bottom: 40px;
    }

    /* Oculta os elementos gráficos para não poluírem telas verticais pequenas */
    .mascote-img,
    .chapeu-img {
        display: none !important;
    }

    /* Transforma o banner lateral num cabeçalho no topo */
    .banner-section {
        position: relative;
        width: 100% !important;
        height: 150px;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    }

    .logo-gs {
        position: absolute;
        width: 240px;
        height: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* Adapta o formulário para o centro da tela sem estourar as margens */
    .form-section {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 90%;
        max-width: 450px;
        height: auto;
        margin-top: 30px;
    }

    .card-orange {
        position: relative;
        width: 100%;
        height: auto;
        left: 0;
        top: 0;
        padding: 5px;
    }

    .card-blue {
        position: relative;
        width: 100%;
        height: auto;
        left: 0;
        top: 0;
        padding: 25px 20px;
    }

    .title {
        font-size: 38px;
    }

    .subtitle {
        font-size: 20px;
    }
}

/* 5. Ajustes para Celulares Pequenos (Abaixo de 480px) */
@media (max-width: 480px) {
    .banner-section {
        height: 120px;
    }

    .logo-gs {
        width: 190px;
    }

    .form-section {
        width: 92%;
        margin-top: 15px;
    }

    .title {
        font-size: 30px;
    }

    .subtitle {
        font-size: 16px;
    }

    .btn-entrar {
        height: 46px;
        font-size: 18px;
    }
}