@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* --- ANIMAÇÕES --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ESTILOS GERAIS E FUNDO --- */
body {
    background-color: #0a1a0a;
    background-image: radial-gradient(circle at center, rgba(0, 255, 150, 0.1) 0%, transparent 60%), repeating-linear-gradient( to right, rgba(0, 255, 150, 0.05) 0px, rgba(0, 255, 150, 0.05) 1px, transparent 1px, transparent 50px ), repeating-linear-gradient( to bottom, rgba(0, 255, 150, 0.05) 0px, rgba(0, 255, 150, 0.05) 1px, transparent 1px, transparent 50px );
    color: #fff;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
}

/* --- WRAPPER DO LOGIN --- */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

    .login-wrapper img.login-logo {
        width: 200px;
        max-width: 80%;
        height: auto;
        margin-top: 0px;
        margin-bottom: -10px;
        filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.7));
    }

.login-title {
    display: none;
}

.login-container {
    background-color: rgba(0, 20, 10, 0.6);
    background-image: repeating-linear-gradient( 45deg, rgba(0, 255, 204, 0.05), rgba(0, 255, 204, 0.05) 1px, transparent 1px, transparent 6px );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 204, 0.5);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.2);
    width: 90%;
    max-width: 380px;
    box-sizing: border-box;
}

    .login-container h2 {
        text-align: center;
        margin-top: 0;
        margin-bottom: 30px;
        color: #f9c900;
        text-shadow: 0 0 8px rgba(249, 201, 0, 0.5);
    }

/* --- INPUTS E LABELS --- */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #ccc;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

input:focus {
    outline: none;
    border-color: #f9c900;
    box-shadow: 0 0 10px rgba(249, 201, 0, 0.5);
}

::placeholder {
    color: #666;
    opacity: 1;
}

/* Efeitos visuais nos cantos dos inputs */
.input-group::before,
.input-group::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #f9c900;
    border-style: solid;
    box-shadow: 0 0 10px rgba(249, 201, 0, 0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.input-group::before {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}

.input-group::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

.input-group:focus-within::before,
.input-group:focus-within::after {
    opacity: 1;
}

.input-group:focus-within label {
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

/* --- BOTÃO PRINCIPAL --- */
button {
    width: 100%;
    padding: 12px;
    background-color: #f9c900;
    color: #111;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(249, 201, 0, 0.4);
    position: relative;
    overflow: hidden;
}

    button:hover {
        background-color: #ffe100;
        transform: scale(1.03);
        box-shadow: 0 0 25px rgba(249, 201, 0, 0.7);
    }

    button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.4), transparent );
        transform: skewX(-25deg);
        transition: left 0.7s ease-in-out;
    }

    button:hover::before {
        left: 150%;
    }

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #ccc;
}

    .register-link a {
        color: #f9c900;
        text-decoration: none;
        font-weight: 600;
    }

        .register-link a:hover {
            text-decoration: underline;
        }


/* =====================================================
   TERMOS DE USO - CHECKBOX E MODAL
   ===================================================== */

/* Checkbox acima do botão */
.termos-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0 20px 0;
    font-size: 0.9rem;
    color: #ccc;
}

    .termos-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0 10px 0 0;
        cursor: pointer;
        accent-color: #f9c900;
        padding: 0;
        border: 1px solid #555;
    }

    .termos-wrapper a {
        color: #f9c900;
        text-decoration: underline;
        cursor: pointer;
        font-weight: bold;
        transition: color 0.3s;
    }

        .termos-wrapper a:hover {
            color: #ffe100;
        }

/* Fundo escuro do Modal (Correção de Visibilidade) */
#modalTermos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Fica acima de tudo */
    /* Oculto por padrão (Importante!) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

    /* Classe que torna visível via JS */
    #modalTermos.visivel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

/* Caixa do Modal */
.modal-content.termos-layout {
    background: #121212;
    border: 1px solid #f9c900; /* Borda Dourada */
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 25px rgba(249, 201, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.termos-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

    .termos-header h2 {
        margin: 0;
        color: #f9c900;
        font-size: 1.4rem;
        text-shadow: 0 0 5px rgba(249, 201, 0, 0.3);
    }

.btn-fechar-modal {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .btn-fechar-modal:hover {
        color: #fff;
    }

.termos-body {
    padding: 20px;
    overflow-y: auto;
    text-align: left;
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.6;
}

    .termos-body h4 {
        color: #00ffcc;
        margin-top: 20px;
        margin-bottom: 8px;
        font-size: 1.0rem;
        border-left: 3px solid #00ffcc;
        padding-left: 10px;
    }

    .termos-body ul {
        padding-left: 20px;
        margin-bottom: 15px;
    }

    .termos-body li {
        margin-bottom: 5px;
    }

    .termos-body p {
        margin-bottom: 10px;
    }

.termos-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    background: rgba(0,0,0,0.2);
}

.btn-entendi-termos {
    background: transparent;
    border: 1px solid #f9c900;
    color: #f9c900;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

    .btn-entendi-termos:hover {
        background: #f9c900;
        color: #000;
        box-shadow: 0 0 15px rgba(249, 201, 0, 0.4);
    }

/* Scrollbar Personalizada para o Modal */
.termos-body::-webkit-scrollbar {
    width: 6px;
}

.termos-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.termos-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

    .termos-body::-webkit-scrollbar-thumb:hover {
        background: #f9c900;
    }
