/* ============================================================
   ESTILO GERAL DA ÁREA DE LOGIN
   ============================================================ */

.login-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px !important;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.login-container h2 {
    color: var(--text-color, #333);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* ============================================================
   CORREÇÃO: O "QUADRADO" DO INPUT (CAIXA DE DIGITAÇÃO)
   ============================================================ */

.input-group {
    display: flex;
    align-items: center;
    /* Adicionei cores fixas para aparecer no seu fundo branco do print */
    background-color: #f0f2f5; 
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 12px 15px; /* Aumentei o respiro interno */
    transition: all 0.3s ease;
}

/* Quando clicar no campo, ele ganha uma borda azul */
.input-group:focus-within {
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group span {
    color: #007bff;
    margin-right: 12px;
    font-size: 22px;
}

/* Onde a pessoa realmente digita */
.input-group input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #333; /* Texto escuro para você enxergar o que digita */
}

/* Se o seu site estiver no Dark Mode, ele inverte as cores automaticamente */
body.dark-mode .input-group {
    background-color: #1a243d;
    border-color: #2d3748;
}
body.dark-mode .input-group input {
    color: #fff;
}

/* ============================================================
   BOTÕES (ENTRAR E GOOGLE)
   ============================================================ */

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin: 10px 0;
    transition: transform 0.2s, background 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-google {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-google:hover {
    background-color: #e2e2e2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-google img {
    width: 20px;
}


/* ============================================================
   EXTRAS (DIVISOR E LINKS)
   ============================================================ */

.divisor {
    margin: 20px 0;
    text-align: center;
    border-bottom: 1px solid #979797;
    line-height: 0.1em;
}
.divisor span {
    background: #fff;
    padding: 0 10px;
    color: #999;
    font-size: 12px;
}

.toggle-text {
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.toggle-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 700;
}

.politica-link {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.politica-link a {
    color: #007bff;
    text-decoration: underline;
}

.hidden { display: none !important; }

/* Mensagens de Erro/Sucesso */
.message-box {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}
.message-box.error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.message-box.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* ============================================================
   ÍCONE DE MOSTRAR SENHA
   ============================================================ */
.toggle-password {
    cursor: pointer;
    margin-right: 0 !important; /* Remove a margem direita padrão dos ícones */
    margin-left: 10px; /* Dá um respiro entre o texto e o olho */
    color: #666 !important; /* Cor mais discreta */
    user-select: none; /* Evita que o usuário selecione o ícone como texto */
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #007bff !important; /* Fica azul ao passar o mouse */
}

/* ============================================================
   OVERLAY DE SUCESSO (TELA CHEIA)
   ============================================================ */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f4f6f9; /* Fundo claro padrao */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.dark-mode .login-overlay {
    background: #1a202c; /* Fundo escuro */
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    text-align: center;
    color: #333;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

body.dark-mode .overlay-content {
    color: #cbd5e0;
}

.login-overlay.active .overlay-content {
    transform: translateY(0);
}

.overlay-content .spin-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
    animation: spin 1.2s linear infinite;
}

.overlay-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Transição para a página sumir */
body.fade-out .container {
    opacity: 0;
    transition: opacity 0.4s ease;
}