/* auth.css - Versão Compacta e Uniforme */

/* 1. CONFIGURAÇÃO DO CORPO */
body.auth-body {
    margin: 0; padding: 0;
    width: 100%; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 70%);
    position: relative; overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

/* 2. FUNDO */
.hero-bg-grid {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: 0; pointer-events: none;
}
.hero-glow-spot {
    position: absolute; background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    filter: blur(80px); z-index: 0; pointer-events: none;
}

/* 3. BOTÃO VOLTAR */
.back-home-btn {
    position: absolute; top: 30px; left: 30px;
    color: #888; text-decoration: none; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
    z-index: 100; transition: 0.3s; font-weight: 600;
}
.back-home-btn:hover { color: #fff; transform: translateX(-5px); }

/* 4. CARTÃO (Tamanho Padronizado) */
.auth-container {
    position: relative; z-index: 10;
    width: 100%; max-width: 400px; /* Largura fixa para ambos */
    padding: 10px;
}

.auth-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    /* Padding reduzido verticalmente para caber o cadastro */
    padding: 30px 35px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    text-align: center;
}

/* 5. TIPOGRAFIA */
.auth-header { margin-bottom: 20px; } /* Margem reduzida */
.logo-small { margin-bottom: 10px; display: flex; justify-content: center; }
.auth-header h2 { 
    font-family: 'Syne', sans-serif; font-size: 1.8rem;
    color: #fff; margin-bottom: 5px; font-weight: 700;
}
.dot { color: #3b82f6; }
.auth-header p { color: #888; font-size: 0.9rem; }

/* 6. INPUTS (Mais compactos) */
.auth-form { display: flex; flex-direction: column; gap: 12px; } /* Gap reduzido de 15 para 12 */

.input-group { position: relative; width: 100%; }
.input-group input {
    width: 100%; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 45px; /* Altura confortável mas compacta */
    border-radius: 12px; color: #fff;
    font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem;
    transition: 0.3s; outline: none;
}
.input-group input:focus {
    border-color: #3b82f6; background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.input-icon, .toggle-password {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #555; transition: 0.3s; left: 16px; font-size: 0.9rem;
}
.toggle-password { left: auto; right: 16px; cursor: pointer; }
.toggle-password:hover { color: #fff; }

/* 7. CHECKBOX E LINKS */
.form-actions {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: #888; margin-top: 5px;
}
.form-actions.left-align { justify-content: flex-start; }
.forgot-pass { color: #888; text-decoration: none; transition: 0.3s; }
.forgot-pass:hover { color: #fff; text-decoration: underline; }

.checkbox-container {
    display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative;
}
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
    height: 16px; width: 16px; background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
    position: relative; transition: 0.3s;
}
.checkbox-container input:checked ~ .checkmark { background-color: #3b82f6; border-color: #3b82f6; }
.checkmark:after {
    content: ""; position: absolute; display: none; left: 5px; top: 2px;
    width: 3px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.terms-text a { color: #3b82f6; text-decoration: none; }

/* 8. BOTÕES */
.btn-hero {
    background: #3b82f6; color: #000; border: none; padding: 12px; width: 100%;
    border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: 0.3s; margin-top: 5px; display: flex; justify-content: center; align-items: center; gap: 8px;
}
.btn-hero:hover { background: #fff; box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }

.auth-divider { margin: 15px 0; position: relative; text-align: center; }
.auth-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(255,255,255,0.1);
}
.auth-divider span {
    background: #0e0e0e; padding: 0 10px; color: #555; font-size: 0.75rem;
    position: relative; z-index: 1; text-transform: uppercase; letter-spacing: 1px;
}

.social-login { display: flex; gap: 15px; justify-content: center; margin-bottom: 15px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; transition: 0.3s; cursor: pointer;
}
.social-btn:hover { background: #fff; color: #000; transform: translateY(-3px); }

.auth-footer p { color: #666; font-size: 0.85rem; }
.auth-footer a { color: #3b82f6; text-decoration: none; font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

