/* BODY */
body {
    height: 100vh;
    overflow: hidden;
}

/* =========================================
   AUTH SHELL
   Layout de duas colunas (logo + formulário)
   reutilizado por todas as telas de autenticação
========================================= */

.auth-shell {
    height: 100vh;
    display: flex;
}

/* PAINEL DA MARCA (~60%) — fundo claro para hospedar a logo (PNG sem transparência) */
.auth-brand {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px;
    background: #FFFFFF;
    text-align: center;
}

    .auth-brand img {
        width: 100%;
        max-width: 420px;
    }

    .auth-brand-headline {
        font-size: 20px;
        font-weight: 700;
        color: #2C2C2C;
        max-width: 440px;
    }

    .auth-brand-subtext {
        font-size: 14px;
        color: #616161;
        max-width: 440px;
    }

/* PAINEL DO FORMULÁRIO (~40%) — mantém o fundo escuro original */
.auth-form-side {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #121212;
    color: #FFFFFF;
    overflow-y: auto;
}

/* FUNDO COM EFEITO */
.background-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, #1f1f1f, #0d0d0d);
    z-index: 0;
}

/* CARD (login e cadastro compartilham o mesmo cartão) */
.auth-card {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    color: #2C2C2C;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

    .auth-card h2 {
        margin-bottom: 25px;
    }

/* RESPONSIVO — empilha logo em cima do formulário em telas estreitas */
@media (max-width: 900px) {
    .auth-shell {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .auth-brand {
        flex: none;
        padding: 40px 24px;
    }

        .auth-brand img {
            max-width: 220px;
        }

    .auth-form-side {
        flex: none;
        padding: 40px 24px 60px;
    }
}

/* INPUT */
.input-group {
    margin-bottom: 15px;
}

    .input-group input,
    .input-group select {
        width: 100%;
        padding: 12px;
        border: 1px solid #F5F5F5;
        border-radius: 8px;
        outline: none;
        transition: 0.3s;
    }

        .input-group input:focus,
        .input-group select:focus {
            border-color: #E53935;
        }

/* CHECKBOX (aceite de termos) */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-inline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #616161;
    cursor: pointer;
}

    .checkbox-inline input[type="checkbox"] {
        width: auto;
        margin-top: 2px;
        accent-color: #E53935;
        cursor: pointer;
    }

    .checkbox-inline a {
        color: #E53935;
        font-weight: 600;
        text-decoration: none;
    }

        .checkbox-inline a:hover {
            text-decoration: underline;
        }

/* OPTIONS */
.options {
    font-size: 14px;
    margin-bottom: 20px;
    color: #616161;
}

/* BOTÃO (login e cadastro compartilham o mesmo botão) */
.btn-login {
    width: 100%;
    padding: 14px;
    background: #E53935;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-login:hover {
        background: #C62828;
    }

/* FOOTER */
.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #616161;
}

/* LINKS */
.links {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

    .links a {
        font-size: 13px;
        text-decoration: none;
        color: #616161;
        transition: 0.3s;
    }

        .links a:hover {
            color: #E53935;
        }

/* TELA DE ACESSO NEGADO (fora do escopo do novo layout de logo) */
.denied-wrapper {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.denied-card {
    background: #FFFFFF;
    color: #2C2C2C;
    padding: 50px;
    border-radius: 12px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.denied-card h1 {
    margin-bottom: 15px;
    color: #E53935;
}

.denied-card p {
    font-size: 14px;
    color: #616161;
    margin-bottom: 25px;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-primary {
    padding: 10px 20px;
    background: #E53935;
    color: #FFFFFF;
    border-radius: 6px;
    text-decoration: none;
}

    .btn-primary:hover {
        background: #C62828;
    }

.btn-secondary {
    padding: 10px 20px;
    background: #F5F5F5;
    color: #2C2C2C;
    border-radius: 6px;
    text-decoration: none;
}

/*Recuperar Senha*/
.info-text {
    font-size: 14px;
    color: #616161;
    margin-bottom: 20px;
}

.error-box {
    background: #fdecea;
    color: #C62828;
    border: 1px solid #f5c2c7;
    border-left: 4px solid #E53935;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================
   ACCOUNT SWITCH
========================= */

.account-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.switch-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #F5F5F5;
    color: #616161;
    transition: .2s ease;
}

    .switch-btn:hover {
        background: #EAEAEA;
        color: #121212;
    }

    .switch-btn.active {
        background: #E53935;
        color: #FFFFFF;
    }
