/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
}

/* Fundo */
/* * Projeto: Point do Pastel - Fundo sem distorção */
body {
    background:
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url('../img/login.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container */
.login-container {
    width: 100%;
    max-width: 360px;
    padding: 10px;
}

/* Caixa de Login Compacta */
/* * Projeto: Point do Pastel - Redução drástica de espaços para não cobrir o fundo */
.login-box {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Logo */
.logo-area {
    text-align: center;
    margin-bottom: 15px;
}

.logo-area h2 {
    color: #e63946;
    font-size: 20px;
}

.logo-area p {
    color: #6c757d;
    font-size: 13px;
}

/* Alertas de Erro */
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    font-size: 13px;
    text-align: center;
}

/* Inputs */
.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

/* Estilos adicionados para o campo de senha com botão de visualização */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px; /* Libera espaço para o ícone não sobrepor o texto */
}

.btn-toggle-senha {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 16px;
    padding: 6px;
    transition: color 0.2s ease;
}

.btn-toggle-senha:hover {
    color: #e63946;
}

/* Honeypot — invisível para humanos, bots preenchem */
.hp-field {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* BOTÃO ENTRAR */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-login:hover {
    background-color: #d62828;
}

/* Footer e Links Extras */
.login-footer {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Botão Esqueceu a Senha - Estilo Outline (Vazado) */
.login-footer a[href="esqueci_senha.php"] {
    display: block;
    padding: 10px 15px;
    background-color: transparent;
    color: #e63946;
    border: 1.5px solid #e63946;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efeito de preenchimento ao passar o mouse */
.login-footer a[href="esqueci_senha.php"]:hover {
    background-color: #e63946;
    color: #ffffff;
}

/* Efeito ao tocar (Mobile) */
.login-footer a[href="esqueci_senha.php"]:active {
    background-color: #c62828;
    border-color: #c62828;
    color: #ffffff;
}

/* Botão Voltar */
.btn-voltar {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-voltar:hover {
    background: #e9ecef;
}

