/* ==============================
   RESET BÁSICO
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: url("img/fundoazulescuro2.png") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ==============================
   CONTAINERS DE LOGIN / CADASTRO
================================= */
.login-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.hidden {
    display: none !important;
}

/* ==============================
   TEXTOS
================================= */
.title {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.subtitle {
    margin-bottom: 20px;
    color: #ddd;
    font-size: 1em;
}

.msg {
    margin: 10px 0;
    font-size: 0.9em;
    color: #ff6666;
}

/* ==============================
   INPUTS & BOTÕES
================================= */
.login-container input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: none;
    outline: none;
}

.login-container button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background: #28a745;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: 0.3s;
}

.login-container button:hover {
    background: #218838;
}

/* Botão Google */
.google-btn {
    background: #db4437;
}

.google-btn:hover {
    background: #c23321;
}

/* Links */
.links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.links a {
    color: #4da6ff;
    font-size: 0.9em;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* ==============================
   MODAL DE RECUPERAÇÃO
================================= */
/* Overlay do Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* fundo semi-transparente */
    backdrop-filter: blur(6px);   /* aplica o blur no fundo */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Conteúdo do Modal */
.modal-content {
    background: rgba(0, 0, 0, 0.9); /* fundo preto, mantendo padrão do site */
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-in-out;
}


.modal-content h3 {
    margin-bottom: 15px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.modal-actions button {
    flex: 1;
    margin: 0 5px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-enviar {
    background: #28a745;
    color: #fff;
}

.btn-enviar:hover {
    background: #218838;
}

.btn-cancelar {
    background: #dc3545;
    color: #fff;
}

.btn-cancelar:hover {
    background: #b52a37;
}

/* ==============================
   ANIMAÇÕES
================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Suavidade ao fechar modal */
.fade-out .modal-content {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

/* Shake para erros */
.shake {
    animation: shakeAnim 0.4s ease;
}

@keyframes shakeAnim {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
