/* appweb/public/css/login.css */
/* ===================================================
 * 🧭 ESTILOS DA PÁGINA DE LOGIN (LOGIN.HTML)
=================================================== */

/* RESET GERAL - SOMENTE UMA VEZ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ESTILOS PARA HTML E BODY - CONSOLIDADOS */
html, body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', sans-serif; /* Ou sua fonte preferida */
    line-height: 1.6;
    color: #f0f0f0; /* Cor do texto padrão */
    overflow: hidden; /* Evita scroll na página de login */
}

body.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000; /* Fundo padrão caso a imagem não carregue */
    /* A imagem de fundo será definida no HTML via style="background-image: url(...)" como você indicou */
    background-size: cover; /* Faz a imagem cobrir toda a área */
    background-position: center; /* Centraliza a imagem */
    background-repeat: no-repeat; /* Evita repetição da imagem */
    background-attachment: fixed; /* Fixa a imagem de fundo ao rolar */
}

/* Overlay para escurecer o fundo e destacar a caixa de login */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Garante que o overlay fique acima da imagem de fundo */
}

/* Estilos da caixa de login */
.login-box {
    background-color: rgba(18, 18, 18, 0.9); /* Fundo da caixa de login (mais escuro e semi-transparente) */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    z-index: 2; /* Garante que a caixa de login fique acima do overlay */
}

.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.2s ease;
}
.back-arrow:hover {
    color: #FFD700; /* Dourado no hover */
}

.logo {
    width: 100px; /* Ajuste o tamanho do logo conforme necessário */
    height: auto;
    margin-bottom: 20px;
}

h2 {
    color: #FFD700; /* Dourado para o título */
    margin-bottom: 30px;
}

/* Estilos para o formulário */
.login-box form p {
    margin-bottom: 15px;
    text-align: left;
}
.login-box form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #A8A8A8; /* Cor para os labels */
}
/* Estilizando os inputs de texto e senha */
.login-box form input[type="text"], 
.login-box form input[type="password"],
.login-box form input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #262626; /* Cor da borda */
    background-color: #000; /* Fundo do input */
    color: #FFFFFF; /* Cor do texto no input */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px; /* Adiciona espaçamento entre os inputs */
}
.login-box form input[type="text"]:focus,
.login-box form input[type="password"]:focus,
.login-box form input[type="email"]:focus {
    border-color: #FFD700; /* Dourado no foco */
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.5); /* Sombra dourada no foco */
}

/* Estilo para o botão de submit */
.login-box form input[type="submit"],
.login-box button[type="submit"] {
    width: 100%;
    padding: 12px 25px;
    background-color: #FFD700; /* Dourado para o botão */
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.login-box form input[type="submit"]:hover,
.login-box button[type="submit"]:hover {
    background-color: #E0C200; /* Dourado mais escuro no hover */
}

.extras p {
    margin-top: 15px;
    font-size: 0.9em;
}

.extras a {
    color: #FFD700; /* Dourado para links */
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.extras a:hover {
    text-decoration: underline;
}

/* Estilo para mensagens de erro/ajuda */
.error-message {
    color: #ff4d4d; /* Vermelho para erros */
    list-style: none;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsividade básica */
@media (max-width: 600px) {
    .login-box {
        padding: 30px;
        width: 95%; /* Ajusta a largura em telas menores */
    }
    h2 {
        font-size: 1.8em;
    }
    /* Ajustes para inputs e botões em telas menores */
    .login-box form input[type="text"],
    .login-box form input[type="password"],
    .login-box form input[type="email"],
    .login-box form input[type="submit"],
    .login-box button[type="submit"] {
        padding: 10px;
        font-size: 1em;
    }
    .extras p {
        font-size: 0.8em;
    }
}