/* Arquivo: assets/css/style.css */

/* --- Configurações Globais e Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-image: url('../img/bg_digyo.jpeg'); /* Caminho corrigido para ser relativo ao CSS */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    position: relative;
}

/* --- Container Principal --- */
.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* --- Caixa de Login --- */
.login-box {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box img {
    max-width: 180px;
    margin-bottom: 20px;
}

.login-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1c1e21;
}

.login-box p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #606770;
}

/* --- Mensagem de Erro --- */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* --- Grupos de Input (Label + Campo) --- */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #4b4f56;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    background-color: #f5f6f7;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #347083;
}

/* --- Botão de Login --- */
.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background-color: #347083;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: #2a5969;
}

/* --- Rodapé --- */
.login-footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    font-size: 12px;
    color: #ccc;
    z-index: 1;
}

/* --- NOVA REGRA PARA O LINK DISCRETO --- */
.footer-link {
    color: inherit; /* Herda a cor cinza do texto do rodapé */
    text-decoration: none; /* Remove o sublinhado */
    transition: text-decoration 0.2s;
}
.footer-link:hover {
    text-decoration: underline; /* Adiciona sublinhado ao passar o mouse */
}

/* --- Responsividade --- */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-box h2 {
        font-size: 20px;
    }

    .btn-login {
        font-size: 16px;
    }
}