/* ===========================
   CORES DA SUA LANDING PAGE
   =========================== */
:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --primary: #FF6B00;
    --secondary: #00A3FF;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --input-bg: #1E1E1E;
    --border-color: #333333;
    --success: #10b981;
    --error: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    
    /* Altura mínima e rolagem permitida */
    min-height: 100vh; 
    overflow-y: auto; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Espaçamento para o card não colar nas bordas ao rolar */
    padding: 40px 20px; 

    /* Fundo com efeito */
    background-image: radial-gradient(circle at 50% -20%, rgba(255, 107, 0, 0.15), transparent 50%);
}

/* Container Centralizado */
.main-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
    /* Garante que o card fique visível acima do fundo */
    position: relative; 
    z-index: 10;
}

/* Logo e Títulos */
.logo-area {
    color: var(--text-main);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* CORREÇÃO DO ALERTA AQUI */
.logo-area i { 
    /* 1. Define o gradiente (padrão e webkit) */
    background: -webkit-linear-gradient(45deg, var(--primary), var(--secondary));
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    
    /* 2. Aplica o recorte (webkit e padrão para compatibilidade) */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* 3. Torna o texto transparente */
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    font-size: 28px;
}

.title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }

/* Botões de Toggle (Abas) */
.toggle-container {
    background: #000000;
    padding: 5px;
    border-radius: 10px;
    display: flex;
    margin-bottom: 25px;
    border: 1px solid #222;
}
.btn-toggle {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.btn-toggle.active {
    background: #222;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Wrapper dos Forms */
.forms-wrapper {
    position: relative;
}

.auth-form {
    display: none; 
    flex-direction: column;
    width: 100%;
    animation: fadeIn 0.4s ease;
}
.auth-form.active {
    display: flex;
}

/* Inputs */
.input-group {
    margin-bottom: 16px;
    width: 100%;
}
.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.input-group input {
    width: 100%; 
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}
.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* Wrapper de Senha */
.password-wrapper {
    position: relative;
    width: 100%;
}
.password-wrapper input { padding-right: 45px; }
.password-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}
.password-wrapper i:hover { color: white; }

/* Link Esqueceu a Senha */
.forgot-link {
    text-align: right;
    display: block;
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

/* Botão Principal */
.btn-primary {
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #FF8800 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    margin-top: 5px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}
.btn-primary:hover { 
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Google e Footer */
.divider {
    text-align: center;
    margin: 30px 0 20px;
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
}
.divider::before, .divider::after {
    content: ''; position: absolute; top: 50%; width: 35%; height: 1px; background: #222;
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.btn-google {
    width: 100%;
    background: white;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}
.btn-google:hover { background: #f0f0f0; }

/* OCULTANDO O TEXTO "NÃO TEM CONTA?" */
.switch-text {
    display: none !important;
}

/* Mensagens de erro/sucesso */
.message-box { min-height: 20px; margin-top: 10px; }
.msg-error { color: var(--error); font-size: 13px; text-align: center; display: none; margin-top: 10px; }
.msg-success { color: var(--success); font-size: 13px; text-align: center; display: none; margin-top: 10px; }
.validation-error { color: var(--error); font-size: 12px; margin-top: 4px; display: none; }

/* Barra de força */
.strength-meter { height: 3px; background: #222; margin-top: 8px; border-radius: 2px; overflow: hidden; }
#passwordStrengthBar { height: 100%; width: 0; transition: 0.3s; }
.validation-info { font-size: 11px; margin-top: 5px; color: var(--text-muted); }

/* Utils */
.btn-loading { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Responsividade Melhorada */
@media (max-height: 800px) {
    body {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px;
        background: var(--card-bg);
        border: none;
        box-shadow: none;
    }
    body {
        padding: 0;
    }
}