/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* FUNDO */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0b3c5d, #145374);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTAINER */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* CARD */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    padding: 35px 30px 30px;
    animation: fadeIn 0.6s ease-in-out;
}

/* ANIMAÇÃO */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CABEÇALHO */
.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header img {
    width: 90px;
    margin-bottom: 10px;
}

.login-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #0b3c5d;
}

.login-header p {
    font-size: 14px;
    color: #555;
}

/* ERRO */
.login-error {
    background: #fdecea;
    color: #b71c1c;
    border-left: 4px solid #b71c1c;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* FORMULÁRIO */
.login-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #145374;
    box-shadow: 0 0 0 2px rgba(20, 83, 116, 0.15);
}

/* BOTÃO */
.login-form button {
    width: 100%;
    padding: 12px;
    background: #0b3c5d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.login-form button:hover {
    background: #145374;
    transform: translateY(-1px);
}

/* RODAPÉ */
.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #555;
}

.login-footer .institucional {
    margin-bottom: 12px;
    line-height: 1.4;
}

/* BOTÃO INFO */
.info-btn {
    background: none;
    border: none;
    color: #0b3c5d;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
}

.info-btn:hover {
    text-decoration: underline;
}

/* ACESSO */
.login-footer .acesso strong {
    color: #0b3c5d;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #fff;
    max-width: 480px;
    width: 90%;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.modal-content h3 {
    margin-bottom: 10px;
    color: #0b3c5d;
}

.modal-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* FECHAR MODAL */
.modal-content .close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.modal-content .close:hover {
    color: #000;
}

/* RESPONSIVO */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 16px;
    }
}
