/* --- Reset e Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F4F7FE;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

/* --- Container Principal --- */
.login-container {
    background: #FFFFFF;
    width: 100%;
    max-width: 1100px;
    height: auto; /* Garante que o card se ajuste ao conteúdo sem scroll interno */
    display: flex;
    flex-direction: row; /* FORMULÁRIO (1º no HTML) na esquerda, HERO (2º) na direita */
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.05);
}

/* --- Seção do Formulário (Lado Esquerdo) --- */
.login-form-area {
    flex: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.btn-back {
    text-decoration: none;
    color: #A3AED0;
    font-size: 12px;
    margin-bottom: 10px;
    display: inline-block;
}

.welcome-text { 
    color: #FF7A1B; 
    font-size: 13px; 
    font-weight: 600; 
}

.login-title {
    font-size: 32px;
    color: #2B3674;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Botões Sociais */
.social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 1px solid #E0E5F2;
    background: #FFF;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #2B3674;
}

.btn-social img { width: 18px; }

.divider {
    display: flex;
    align-items: center;
    color: #A3AED0;
    margin-bottom: 15px;
    font-size: 11px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E0E5F2;
}

.divider span { padding: 0 10px; }

/* Inputs Amarelo Figma */
.input-group { margin-bottom: 12px; }

.input-group label {
    display: block;
    font-size: 12px;
    color: #2B3674;
    font-weight: 700;
    margin-bottom: 5px;
}

.input-field {
    background-color: #FFD21B; /* Amarelo vibrante do Figma */
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 45px;
}

.input-field input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #2B3674;
}

.input-field i { 
    color: #2B3674; 
    opacity: 0.6; 
}

/* Checkbox LGPD */
.checkbox-area {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0;
}

.checkbox-area label {
    font-size: 10px;
    color: #A3AED0;
    line-height: 1.4;
}

/* Botão de Cadastro */
.btn-enter {
    width: 100%;
    padding: 15px;
    background: #FF7A1B;
    color: #FFF;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0px 10px 20px rgba(255, 122, 27, 0.2);
}

.signup-text {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #A3AED0;
}

.signup-text a { 
    color: #FF7A1B; 
    font-weight: 700; 
    text-decoration: none; 
}

/* --- Seção Hero (Lado Direito) --- */
.login-hero {
    flex: 1;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.hero-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 22px;
}

.login-logo { width: 65px; }

.hero-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 40px;
}

.highlight-orange { color: #FF7A1B; }
.highlight-yellow { color: #FFD21B; }
.highlight-blue { color: #234296; }

.hero-subtitle {
    margin-top: 15px;
    font-size: 14px;
    max-width: 320px;
    opacity: 0.9;
}

/* Glassmorphism no depoimento */
.testimonial-bubble {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
}

.testimonial-bubble p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}


/* --- Responsividade Completa --- */

/* TABLETS (Até 1024px) */
@media (max-width: 1024px) {
    .login-container {
        max-width: 900px;
        margin: 0 20px;
    }

    .hero-title {
        font-size: 32px; /* Reduz um pouco o título no tablet */
    }

    .login-form-area {
        padding: 30px; /* Reduz o respiro lateral */
    }
}

/* CELULARES GRANDES E TABLETS PEQUENOS (Até 900px) */
@media (max-width: 900px) {
    body {
        padding: 10px;
        align-items: flex-start; /* Permite scroll natural se o form for longo */
    }

    
    .hero-bg-img {
        height: 100%;
    }

    .hero-title {
        font-size: 28px;
        margin-top: 20px;
    }

    .testimonial-bubble {
        display: none; /* Esconde o depoimento no mobile para ganhar espaço */
    }

   .login-container {
        flex-direction: column; /* Remove o layout lado a lado */
        height: auto; /* Permite que o container se ajuste ao formulário */
        margin: 20px; /* Adiciona respiro nas laterais */
    }

    .login-hero {
        display: none !important; /* OCULTA TOTALMENTE O LADO DIREITO (Hero) */
    }

    /* Garante que o formulário ocupe toda a largura disponível */
    .login-form-area {
        width: 100%;
        padding: 40px 20px; /* Ajusta o padding para telas pequenas */
    }

    /* Centraliza o conteúdo do formulário se necessário */
    .form-wrapper {
        margin: 0 auto;
    }
}

/* CELULARES PEQUENOS (Até 480px) */
@media (max-width: 480px) {
    .login-title {
        font-size: 26px; /* Título principal menor */
    }

    .social-buttons {
        flex-direction: column; /* Botões sociais um abaixo do outro */
        gap: 8px;
    }

    .btn-social {
        width: 100%;
    }

    .input-field {
        height: 50px; /* Aumenta a área de toque no celular (UX) */
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .btn-enter {
        padding: 18px; /* Botão mais fácil de clicar com o polegar */
    }
}