/* ==========================================
   ARQUIVO: arquivos/css/auth.css
   ESTILOS DAS TELAS DE AUTENTICAÇÃO
   (login.php, cadastrar.php, esqueci-senha.php, redefinir-senha.php)
   TEMA ESCURO COM FOTO — mesmo padrão do login do Deve Food
   ========================================== */

:root {
    --auth-cor-primaria: #6C5CE7;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

.auth-lado-imagem {
    flex: 0 0 58%;
    position: relative;
    background-image: linear-gradient(180deg, rgba(15, 15, 20, 0.55), rgba(15, 15, 20, 0.85)), url('../img/login.webp');
    background-size: cover;
    background-position: center;
    background-color: #16161d; /* aparece enquanto a imagem carrega ou se ela faltar */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
}

.auth-voltar {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    width: fit-content;
}

.auth-voltar:hover {
    opacity: 1;
    color: #fff;
}

.auth-lado-imagem-conteudo h1 {
    font-size: 2.4rem;
    font-weight: 700;
    max-width: 560px;
    line-height: 1.25;
}

.auth-lado-imagem-conteudo .destaque {
    color: var(--auth-cor-primaria);
}

.auth-lado-imagem-conteudo p {
    max-width: 480px;
    opacity: 0.85;
    font-size: 1rem;
    margin-top: 16px;
}

.auth-copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

.auth-lado-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6fa;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.auth-logo {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--auth-cor-primaria);
    margin-bottom: 4px;
}

.auth-subtitulo {
    text-align: center;
    color: #7b7b8b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.auth-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #5a5a6a;
}

.auth-input-group .input-group-text {
    background: #fff;
    border-right: none;
    color: #a0a0b0;
}

.auth-input-group .form-control {
    border-left: none;
}

.auth-input-group .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.auth-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    border-radius: 0.375rem;
}

.auth-toggle-senha {
    cursor: pointer;
    border-left: none;
    background: #fff;
}

.auth-lembrar {
    font-size: 0.85rem;
    color: #5a5a6a;
}

.auth-link {
    font-size: 0.85rem;
    color: var(--auth-cor-primaria);
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn {
    background: var(--auth-cor-primaria);
    border-color: var(--auth-cor-primaria);
    padding: 10px;
    font-weight: 600;
}

.auth-btn:hover {
    background: #5a4bd1;
    border-color: #5a4bd1;
}

.auth-btn:focus-visible,
.auth-link:focus-visible,
.auth-voltar:focus-visible {
    outline: 2px solid var(--auth-cor-primaria);
    outline-offset: 2px;
}

.auth-rodape {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #5a5a6a;
}

@media (max-width: 991px) {
    .auth-lado-imagem {
        display: none;
    }
    .auth-lado-form {
        flex: 1 0 100%;
    }
}
