* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #fff;
    width: 360px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* LOGO */
.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header img {
    max-width: 100%;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 13px;
    color: #555;
}

/* Container */
.login-container {
    width: 100%;
    padding: 20px;
}

/* Card */
.login-card {
    max-width: 420px;
    margin: auto;
    background: #ffffff;
    padding: 30px 15px 30px 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Cabeçalho */
.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header h1 {
    margin: 0;
    color: #2e7d32;
    font-size: 28px;
}

.login-header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

/* Título */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Erro */
.erro {
    background: #ffe5e5;
    color: #b00000;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* Form */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

form input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Botão */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2e7d32;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #256628;
}

/* checkbox mostrar senha */
.mostrar-senha {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -5px 0 18px;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    user-select: none;
}

.mostrar-senha input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2e7d32; /* cor do sistema */
    cursor: pointer;
    margin-top: 13px;
}

.mostrar-senha label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    line-height: 2;
}

/* ===== CPF validação visual ===== */
input.cpf-valido {
    border: 2px solid #2ecc71;
}

input.cpf-invalido {
    border: 2px solid #e74c3c;
}

#cpfMsg {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

#cpfMsg.valido {
    color: #2ecc71;
}

#cpfMsg.invalido {
    color: #e74c3c;
}

/* ===== HEADER ===== */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.top-header img {
    height: 45px;
}

.header-info {
    text-align: center;
    flex: 1;
}

.header-info span {
    display: block;
    font-weight: bold;
    color: #2e7d32;
    font-size: 16px;
}

.header-info small {
    font-size: 13px;
    color: #666;
}

.logout {
    text-decoration: none;
    color: #fff;
    background: #c62828;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.logout:hover {
    background: #a71d1d;
}

/* ===== LINKS LOGIN ===== */
.login-links {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.login-links p {
    margin-top: 8px;
}

.login-links a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Esqueceu senha */
.texto-ajuda {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 15px;
}

.sucesso {
    background: #e6f7e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.login-footer{
    margin: auto;
    text-align: center;
    padding: 10px;
}