:root {
    --primary: #00609c;
    --dark: #1e293b;
    --bg-gradient: linear-gradient(135deg, #00609c 0%, #004b7a 100%);
    --white: #ffffff;
    --grey: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* LOGO */
.logo-area { margin-bottom: 30px; }
.logo-circle {
    width: 90px; height: 90px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 0 auto 15px;
}
.logo-circle img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.logo-area h2 { color: var(--primary); font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.logo-area p { color: var(--grey); font-size: 13px; font-weight: 500; }

/* FORMULÁRIO */
.input-group {
    position: relative;
    margin-bottom: 15px;
}
.input-group .material-icons-round {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey);
}
.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    background: #f8fafc;
    color: var(--dark);
}
.input-group input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 96, 156, 0.1);
}

/* BOTÃO DE LOGIN */
.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-login:hover {
    background: #004b7a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 96, 156, 0.3);
}

.forgot-pass {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    color: var(--grey);
    text-decoration: none;
    transition: 0.2s;
}
.forgot-pass:hover { color: var(--primary); }

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    margin-top: 30px;
}

/* MOBILE */
@media (max-width: 480px) {
    .login-card { padding: 30px 20px; }
}

/* Caixa de Erro */
.error-box {
    display: none;
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

/* Animação de "Tremer" */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake-animation {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* --- MODAL E WHATSAPP --- */
.modal-overlay {
    display: none; /* Controlado via JS para aparecer */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

/* Se quiser testar o modal visível, mude display: none para display: flex acima */

.modal-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: scale(0.9);
    animation: scaleUp 0.3s forwards;
}

.modal-card h3 { color: var(--primary); margin-bottom: 10px; }
.modal-card p { font-size: 14px; color: #64748b; margin-bottom: 20px; }

/* BOTÃO WHATSAPP */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: 0.2s;
    background-color: #25D366; 
    color: white !important; /* Garante texto branco */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-whatsapp:hover { 
    background-color: #128C7E; 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Botão Fechar */
.btn-close-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.2s;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    cursor: pointer;
    text-decoration: none; /* Caso seja usado em tag <a> */
}

.btn-close-modal:hover { background: #e2e8f0; color: #1e293b; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { to { transform: scale(1); } }