/* ============================================
   LOGIN PAGE - PRIMO CONTINGÊNCIA
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0B0F1F;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 1rem;
}

/* Imagem de fundo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagens/Painel-analise.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* Gradiente sobre a imagem */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 15, 31, 0.75), rgba(11, 15, 31, 0.85));
    pointer-events: none;
    z-index: 0;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* Lado da marca */
.brand-side {
    flex: 1;
    text-align: center;
}

.logo-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem auto;
}

.tagline {
    font-size: 1rem;
    color: #A5AAC7;
    margin-bottom: 1.5rem;
    font-weight: 400;
    padding: 0 1rem;
}

/* Estatísticas */
.stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: #FF8C2E;
    font-weight: 700;
}

.stat-item p {
    color: #A5AAC7;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Lado do formulário */
.auth-side {
    flex: 0.8;
    background: rgba(18, 22, 48, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 107, 0, 0.25);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

.auth-side h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 600;
}

/* Inputs */
.input-group {
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 18, 46, 0.9);
    border: 1px solid #2A2F4A;
    border-radius: 0.75rem;
    color: white;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: #FF6B00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, #FF6B00, #FF8C2E);
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
}

.google-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #2A2F4A;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #FF6B00;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Divisor */
.divider {
    text-align: center;
    margin: 1rem 0;
    color: #6B7280;
    position: relative;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #2A2F4A;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* Links */
.switch-auth {
    text-align: center;
    margin-top: 1.2rem;
    color: #A5AAC7;
    font-size: 0.85rem;
}

.switch-auth a {
    color: #FF8C2E;
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* Mensagens */
.error-msg {
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
    padding: 0.7rem;
    border-radius: 0.5rem;
    color: #fca5a5;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.success-msg {
    background: rgba(34, 197, 94, 0.15);
    border-left: 3px solid #22c55e;
    padding: 0.7rem;
    border-radius: 0.5rem;
    color: #86efac;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .logo-img {
        max-width: 350px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .stat-item h3 {
        font-size: 1.3rem;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .brand-side {
        width: 100%;
    }
    
    .logo-img {
        max-width: 250px;
        margin-bottom: 0.5rem;
    }
    
    .tagline {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .stats {
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.2rem;
    }
    
    .stat-item p {
        font-size: 0.7rem;
    }
    
    .auth-side {
        width: 100%;
        padding: 1.2rem;
    }
    
    .auth-side h2 {
        font-size: 1.3rem;
    }
    
    .input-group input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .divider {
        margin: 1rem 0;
        font-size: 0.75rem;
    }
    
    .switch-auth {
        font-size: 0.8rem;
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    .logo-img {
        max-width: 200px;
    }
    
    .stats {
        gap: 0.8rem;
    }
    
    .stat-item h3 {
        font-size: 1rem;
    }
    
    .stat-item p {
        font-size: 0.65rem;
    }
    
    .auth-side {
        padding: 1rem;
    }
    
    .auth-side h2 {
        font-size: 1.2rem;
    }
}