/* Container Centralizado para Login e Cadastro */
.auth-wrapper {
    min-height: calc(100vh - 65px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 440px;
    padding: 30px;
}

.auth-card-wide {
    max-width: 650px;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header i {
    font-size: 2.8rem;
    color: #0b1f3a;
}

.auth-header h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0b1f3a;
    font-weight: 800;
    margin: 10px 0 5px 0;
}

.auth-header p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-footer a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   MODAL DE ALERTA DE AUTENTICAÇÃO E CADASTRO
   ========================================== */
.modal-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 31, 58, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-alert-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-alert-card {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 28px 24px 20px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #e2e8f0;
    transform: translateY(-20px);
    transition: transform 0.25s ease;
}

.modal-alert-overlay.active .modal-alert-card {
    transform: translateY(0);
}

.modal-alert-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 1.8rem;
}

.modal-alert-icon.sucesso {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.modal-alert-icon.erro {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.modal-alert-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: #0b1f3a;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.modal-alert-card p {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0 0 24px 0;
}

/* BOTÃO VOLTAR EM FORMATO DE CAIXINHA */
.btn-voltar-box {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0b1f3a;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-voltar-box:hover {
    background: #0b1f3a;
    color: #ffffff;
    border-color: #0b1f3a;
    box-shadow: 0 3px 8px rgba(11, 31, 58, 0.25);
    transform: translateY(-1px);
}

/* BOTÃO ENTRAR DA TELA DE LOGIN */
#form-login .btn-primary {
    background-color: #0b1f3a;
    border-color: #0b1f3a;
}

#form-login .btn-primary:hover,
#form-login .btn-primary:focus {
    background-color: #142f50;
    border-color: #142f50;
}
