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

/* Fundo da tela de cadastro */
body {
    background-color: #f4f4f9;
    /* ⚠️ Imagem de background inserida e ajustada */
    background-image: url('../img/esqueci_senha.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container do formulário */
.cadastro-container {
    width: 100%;
    max-width: 450px;
}

/* Caixa branca principal */
.cadastro-box {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Área da Logo */
.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

/* Título */
.logo-area h2 {
    color: #e63946;
    font-size: 26px;
    margin-bottom: 5px;
}

/* Subtítulo */
.logo-area p {
    color: #6c757d;
    font-size: 15px;
}

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

/* ⚠️ Estilo migrado do PHP para organizar o visual no CSS */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

/* Grupo de Inputs */
.input-group {
    margin-bottom: 20px;
}

/* Labels */
.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Inputs padrão */
.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

/* Foco nos inputs */
.input-group input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Wrapper para o botão de mostrar senha */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input de senha específico para abrir espaço para o ícone */
.password-wrapper input {
    padding-right: 40px;
}

/* Botão do Olhinho */
.btn-olho {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

/* Hover no Olhinho */
.btn-olho:hover {
    opacity: 1;
}

/* Botão Cadastrar */
.btn-cadastrar {
    width: 100%;
    padding: 14px;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

/* Hover do Botão Cadastrar */
.btn-cadastrar:hover {
    background-color: #d62828;
}

/* Botão Voltar ao Cardápio */
.btn-voltar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s;
}

/* Hover do Botão Voltar */
.btn-voltar:hover {
    background-color: #e2e6ea;
    color: #212529;
}

/* Rodapé de Login */
.cadastro-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #6c757d;
}

/* Link de Login */
.cadastro-footer a {
    color: #e63946;
    text-decoration: none;
    font-weight: bold;
}

/* Hover do Link de Login */
.cadastro-footer a:hover {
    text-decoration: underline;
}

/* Grid de duas colunas para inputs lado a lado */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Em telas muito pequenas, empilha os campos */
@media (max-width: 400px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

