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

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

.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card principal */
.captcha-card {
    display: flex;
    background: white;
    border-radius: 24px;
    box-shadow: 
        0px 24px 36px 2px rgba(0, 0, 0, 0.05),
        0px 15.92px 10.85px 2px rgba(0, 0, 0, 0.02),
        0px 9.91px 4.51px 2px rgba(0, 0, 0, 0.01),
        0px 5.32px 1.63px 2px rgba(0, 0, 0, 0.01);
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    min-height: 600px;
    box-sizing: border-box;
}

/* Seção esquerda */
.left-section {
    width: 400px;
    min-height: 600px;
    position: relative;
    border-radius: 24px 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #0075E2;
    background-image: url('assets/images/lu.jpg');
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    border: none;
}



.security-illustration {
    position: relative;
    z-index: 2;
}

.security-icon {
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Seção direita */
.right-section {
    flex: 1;
    padding: 24px 60px 40px;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0 24px 24px 0;
    min-width: 0;
}

/* Header interno */
.internal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.magalu-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    border: none;
}

.content {
    width: 100%;
    max-width: 626px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 42px;
    flex: 1;
    margin: 0 auto;
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.14;
    text-align: center;
    color: #BD6500;
    margin: 0;
}

/* reCAPTCHA Container */
.recaptcha-container {
    width: 302px;
    height: 76px;
    position: relative;
}

.recaptcha-frame {
    width: 100%;
    height: 100%;
    background: #F9F9F9;
    border: 1px solid #D3DADD;
    border-radius: 3px;
    box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    position: relative;
}

.recaptcha-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-input {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #D3DADD;
    border-radius: 2px;
    background: white;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-label .checkbox-custom {
    background: #0075E2;
    border-color: #0075E2;
}

.checkbox-input:checked + .checkbox-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 14px;
    color: #000;
    font-weight: 400;
}

.recaptcha-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.recaptcha-logo-img {
    width: 71px;
    height: 36px;
    object-fit: contain;
}

.description {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

.help-section {
    text-align: center;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.contact-link {
    color: #0075E2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #004A94;
    text-decoration: underline;
}

/* Seletor de idioma */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #D3DADD;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
}

.language-selector:hover {
    border-color: #0075E2;
}

.language-flag {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.language-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Responsividade */
@media (max-width: 1024px) {
    .captcha-card {
        flex-direction: column;
        max-width: 600px;
    }
    
    .left-section {
        width: 100%;
        min-height: 300px;
        background: #0075E2;
        background-image: url('assets/images/lu-mobile.jpg');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 24px 24px 0 0;
    }
    
    .right-section {
        padding: 48px 32px;
        border-radius: 0 0 24px 24px;
    }
    
    .background-image {
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-section {
        height: 250px;
        background: #0075E2;
        background-image: url('assets/images/lu-mobile.jpg');
        background-size: 90%;
        background-position: center center;
        background-repeat: no-repeat;
        padding: 1rem;
        border-radius: 24px 24px 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .internal-header {
        margin-bottom: 24px;
    }
    
    .magalu-logo {
        height: 32px;
        border: none;
    }
    
    .right-section {
        padding: 2rem 1rem;
        border-radius: 0 0 24px 24px;
    }
    
    .content {
        gap: 32px;
    }
    
    .main-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .recaptcha-container {
        width: 100%;
        max-width: 302px;
    }
    
    .recaptcha-frame {
        padding: 12px;
    }
    
    .description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .content {
        gap: 24px;
    }
    
    .right-section {
        padding: 24px 16px;
    }
    
    .left-section {
        min-height: 200px;
    }
    
    .security-icon {
        width: 80px;
        height: 80px;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .logo-placeholder {
        font-size: 14px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.captcha-card {
    animation: fadeIn 0.6s ease-out;
}

/* Estados de hover e focus */
.checkbox-label:hover .checkbox-custom {
    border-color: #0075E2;
}

.checkbox-input:focus + .checkbox-label .checkbox-custom {
    outline: 2px solid #0075E2;
    outline-offset: 2px;
}

/* Dropdown de idiomas */
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #D3DADD;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    min-width: 120px;
    overflow: visible;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #F5F5F5;
}

.language-option .flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}