/* ==========================================================================
   Access Style - Exclusivo para Login e Cadastro
   404 Criativo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&family=Montserrat:wght@700&display=swap');

/* ==========================================================================
   Variáveis e Reset Base
   ========================================================================== */
:root {
    --primary-white: #ffffff;
    --text-dark-gray: #333333;
    --text-black: #000000;
    --highlight-orange: #FF6600;
    --light-gray: #f4f4f4;
    --medium-gray: #cccccc;
    --accent-blue: #007bff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.6;
    color: var(--text-dark-gray);
    background-color: #f8f9fa; /* Fundo contrastante para o card */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* ==========================================================================
   Estrutura do Card de Acesso
   ========================================================================== */

/* Container Principal: Garante centralização total na tela */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;    
    justify-content: center;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* O "Card" Branco */
.login-box {
    background: var(--primary-white);
    padding: 10px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 460px;
    text-align: center;
}

/* Logo: Tamanho fixo e equilibrado */
.login-logo {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.login-logo img {
    height: auto;
    width: 200px; 
    margin: 0 auto;
    display: block;
}

/* Títulos e Textos */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--text-dark-gray);
    margin-bottom: 5px;
}

.subtitle-login {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: block;
}

/* ==========================================================================
   Formulários e Inputs
   ========================================================================== */

.form-group {
    margin-bottom: 15px; 
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85em;
    font-weight: bold;
    color: #444;
}

/* Inputs Padronizados */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--highlight-orange);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.1);
}

/* Botão Principal */
.btn-primary {
    background-color: var(--highlight-orange);
    color: var(--primary-white);
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-1px);
}

/* Rodapé dos Links */
.login-footer {
    margin-top: 20px;
    padding-top: 15px;
    margin-bottom: 5px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
}

.login-footer a {
    color: var(--text-dark-gray);
    font-weight: bold;
}

.login-footer a:hover {
    color: var(--highlight-orange);
}

/* ==========================================================================
   Termos de Uso (Checkboxes)
   ========================================================================== */

.termos-wrapper {
    display: grid;
    grid-template-columns: auto 1fr; 
    gap: 10px;
    align-items: start;
    margin: 15px 0;
    cursor: pointer;
    text-align: left;
}

.termos-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--highlight-orange);
    cursor: pointer;
}

.termos-wrapper span {
    font-size: 0.82em;
    line-height: 1.4;
    color: #555;
}

.termos-wrapper a {
    color: var(--highlight-orange);
    font-weight: bold;
}

/* ==========================================================================
   Ajustes Responsivos
   ========================================================================== */

@media (max-width: 480px) {
    /* Mantemos o fundo cinza do body para destacar o card */
    body {
        background-color: #f0f2f5; 
    }

    .login-container {
        /* Adicionamos padding para a caixa não encostar nas bordas laterais e verticais */
        padding: 20px 15px; 
        align-items: center; /* Garante centralização vertical se houver espaço */
    }
    
    .login-box {
        /* Mantemos o preenchimento, bordas e sombra no mobile */
        padding: 25px 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
        border-radius: 12px;
        background: var(--primary-white);
        /* Garante que a box seja visível como card */
        width: 100%;
        max-width: 100%; 
    }

    .login-logo img {
        width: 160px; /* Reduzimos um pouco o logo para telas pequenas */
    }

    .section-title {
        font-size: 1.5em; /* Título menor para evitar quebras estranhas */
    }

    .termos-wrapper {
        gap: 8px;
    }
    
    .termos-wrapper input[type="checkbox"] {
        width: 18px; 
        height: 18px;
    }
}