:root {
    --navy: #081534;
    --branco: #ffffff;
    --cinza: #a9a9a9;
    --amarelo: #F2C94C;
    --verde: #14532d;
    --sombra: 0 8px 32px 0 rgba(8,21,52,0.12);
}

body.login-bg {
    background: linear-gradient(135deg, var(--navy) 60%, var(--cinza) 100%);
    min-height: 100vh;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--branco);
    border-radius: 16px;
    box-shadow: var(--sombra);
    padding: 48px 36px 32px 36px;
    max-width: 380px;
    width: 94vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeInDown 0.7s cubic-bezier(.4,.9,.2,1.2);
}

/* LOGO E TÍTULO */
.login-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}
.login-logo {
    width: 68px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    background: var(--navy);
    box-shadow: 0 2px 12px 0 rgba(8,21,52,0.18);
}
.login-titulo {
    color: var(--navy);
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
}

/* FORMULÁRIO */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.login-form label {
    font-size: 1rem;
    color: var(--navy);
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-weight: 700;
}
.login-form input {
    padding: 10px 12px;
    border: 1px solid var(--cinza);
    border-radius: 6px;
    background: #f9f9f9;
    color: var(--navy);
    font-size: 1rem;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    transition: border 0.2s;
}
.login-form input:focus {
    outline: none;
    border: 1.5px solid var(--navy);
    background: #fff;
}
.btn-login {
    margin-top: 18px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--branco);
    background: var(--navy);
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 6px 0 rgba(8,21,52,0.10);
    cursor: pointer;
    letter-spacing: .5px;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-login:hover, .btn-login:focus {
    background: #0a1e4a;
    box-shadow: 0 4px 12px 0 rgba(8,21,52,0.18);
}

/* ALERTA DE ERRO */
.login-alert.erro {
    background: var(--amarelo);
    color: #333;
    font-weight: 700;
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 18px;
    width: 100%;
    text-align: center;
    border: 1.5px solid #d8b000;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}
.login-alert.sucesso {
    background: var(--verde);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 18px;
    width: 100%;
    text-align: center;
    border: 1.5px solid #0f3d22;
}

/* RODAPÉ */
.login-footer {
    text-align: center;
    color: var(--cinza);
    font-size: 0.95rem;
    margin-top: 12px;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

/* ANIMAÇÃO */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px);}
    to   { opacity: 1; transform: translateY(0);}
}

/* MOBILE */
@media (max-width: 600px) {
    .login-card {
        padding: 30px 8px 22px 8px;
        max-width: 98vw;
    }
    .login-logo {
        width: 54px;
    }
    .login-titulo {
        font-size: 1.3rem;
    }
}
.credit-footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 18px 0 14px 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

.credit-footer .credit-link {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s;
    border-bottom: 2px solid #F2C94C;
    padding-bottom: 2px;
}

.credit-footer .credit-link:hover,
.credit-footer .credit-link:focus {
    color: #F2C94C; /* Amarelo de apoio */
    text-decoration: none;
}