/* ============================================
   RESET E CONFIGURAÇÕES GERAIS
   ============================================ */
header,
footer {
    display: none !important;
}

:root {
    --primary: #051518;
    --card-bg: var(--box);
    --input-bg: rgba(255, 255, 255, 0.05);
    --text-primary: var(--texto);
    --text-secondary: var(--texto);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    background: #051518;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   LAYOUT PRINCIPAL - CENTRALIZADO
   ============================================ */
.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent !important;
    margin: 0;
}

.auth-card {
    max-width: 1100px;
    width: 100%;
    background: transparent !important;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.row.g-0 {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
}

/* ============================================
   COLUNA DA MARCA (ESQUERDA)
   ============================================ */
.brand-col {
    flex: 0 0 45%;
    max-width: 45%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px;
    position: relative;
}

.brand-col .brand-content {
    text-align: center;
    color: var(--texto);
    max-width: 480px;
}

.brand-col .brand-content .logo-icon {
    font-size: 4rem;
    color: var(--botao);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-col .brand-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--titulo);
}

.brand-col .brand-content p {
    font-size: 1.1rem;
    color: var(--texto);
    line-height: 1.6;
}

.brand-col .brand-content .brand-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.brand-col .brand-content .brand-features .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--texto);
    font-size: 0.95rem;
    padding: 12px 20px;
    background: var(--box);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.brand-col .brand-content .brand-features .feature-item:hover {
    background: var(--botao);
    color: white;
    transform: translateX(5px);
}

.brand-col .brand-content .brand-features .feature-item i {
    font-size: 1.2rem;
    color: var(--botao);
    width: 24px;
    text-align: center;
}

.brand-col .brand-content .brand-features .feature-item:hover i {
    color: white;
}

/* ============================================
   COLUNA DO FORMULÁRIO (DIREITA) - CENTRALIZADO
   ============================================ */
.auth-column {
    flex: 0 0 55%;
    max-width: 55%;
    background: transparent !important;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.auth-container {
    background: var(--box);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 45px 45px 45px;
    color: var(--texto) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 520px;
    transition: all 0.3s ease;
}

/* ============================================
   LOGO NO TOPO DO FORMULÁRIO
   ============================================ */
.login-header {
    display: block !important;
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .account-logo {
    display: inline-block;
    border-radius: 10px;
}

.login-header .account-logo img {
    max-height: 50px;
    width: auto;
    /* Múltiplas sombras para mais profundidade */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12))
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

/* ============================================
   TABS
   ============================================ */
.tabs-container {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent !important;
    color: var(--texto);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    opacity: 0.7;
}

.tab-btn:hover {
    color: var(--texto);
    background: rgba(0, 0, 0, 0.03) !important;
    opacity: 1;
}

.tab-btn.active {
    background: var(--botao) !important;
    color: white;
    box-shadow: 0 4px 15px rgba(var(--botao-rgb), 0.15);
    opacity: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   FORMULÁRIO - CAMPOS
   ============================================ */
.auth-form .auth-group {
    margin-bottom: 16px;
}

.auth-form .auth-field {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--fundo);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.auth-form .auth-field:hover {
    background: var(--fundo);
}

.auth-form .auth-field:focus-within {
    border-color: var(--botao);
    background: var(--fundo);
    box-shadow: 0 0 0 4px rgba(var(--botao-rgb), 0.1);
}

.auth-form .auth-field i:not(.toggle-password) {
    position: absolute !important;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--texto);
    pointer-events: none;
    display: inline-block !important;
    z-index: 2;
    opacity: 0.6;
}

.auth-form .auth-field input,
.auth-form .auth-field select {
    width: 100%;
    display: block;
    padding: 14px 45px 14px 45px;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
    border: none !important;
    color: var(--texto);
    font-family: inherit;
}

.auth-form .auth-field input::placeholder {
    color: var(--texto);
    opacity: 0.4;
}

.auth-form .auth-field select {
    padding-right: 16px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.auth-form .auth-field select option {
    color: var(--texto);
    background: var(--box);
}

/* Estilização do select para ficar consistente */
.auth-form .auth-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(0,0,0,0.4)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Toggle Password */
.auth-field .toggle-password {
    position: absolute;
    right: 14px;
    cursor: pointer;
    z-index: 100 !important;
    color: var(--texto);
    transition: color 0.3s;
    font-size: 18px;
    background: transparent;
    border: none;
    padding: 8px;
    pointer-events: auto !important;
    opacity: 0.6;
}

.auth-field .toggle-password:hover {
    opacity: 1;
}

/* ============================================
   TÍTULO "ENDEREÇO"
   ============================================ */
.address-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--texto);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.address-title i {
    font-size: 1rem;
    color: var(--botao);
}

/* ============================================
   LINKS E CHECKBOX
   ============================================ */
.forgot-link {
    text-align: right;
    margin-top: -4px;
    margin-bottom: 1.5rem;
}

.forgot-link a {
    color: var(--texto);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.forgot-link a:hover {
    color: var(--botao);
    opacity: 1;
}

.cursor-pointer {
    cursor: pointer;
    color: var(--texto);
    font-size: 0.9rem;
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.cursor-pointer input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--botao);
    cursor: pointer;
    border-radius: 4px;
    background: var(--fundo);
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* ============================================
   BOTÃO SUBMIT
   ============================================ */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--botao);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    box-shadow: 0 8px 25px rgba(var(--botao-rgb), 0.25);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(var(--botao-rgb), 0.35);
    filter: brightness(1.05);
}

.submit-btn:active {
    transform: translateY(0px);
}

/* ============================================
   MENSAGENS DE ERRO
   ============================================ */
.error-message {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 6px;
    display: none;
    padding-left: 4px;
}

.auth-field.error {
    border-color: #f87171 !important;
}

.auth-field.error input,
.auth-field.error select {
    border-color: #f87171 !important;
}

.auth-field.success {
    border-color: #34d399 !important;
}

.auth-field.success input,
.auth-field.success select {
    border-color: #34d399 !important;
}

.field-error {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* ============================================
   RESPONSIVIDADE - FORMULÁRIO CENTRALIZADO
   ============================================ */

/* Telas Médias (Tablets) */
@media (max-width: 991.98px) {
    .brand-col {
        display: none !important;
    }

    .auth-column {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 30px 20px;
        justify-content: center;
    }

    .auth-container {
        max-width: 480px;
        padding: 40px 35px;
        margin: 0 auto;
    }
}

/* Celulares Grandes */
@media (max-width: 768px) {
    .auth-main {
        padding: 15px;
    }

    .auth-container {
        padding: 30px 24px;
        border-radius: 20px;
        max-width: 100%;
    }

    .auth-column {
        padding: 20px 15px;
        min-height: 100vh;
    }

    .brand-col .brand-content h1 {
        font-size: 2.2rem;
    }

    .auth-form .auth-field input,
    .auth-form .auth-field select {
        padding: 13px 40px 13px 40px;
        font-size: 0.9rem;
    }
}

/* Celulares Pequenos */
@media (max-width: 576px) {
    .auth-container {
        padding: 25px 16px;
        border-radius: 16px;
        max-width: 100%;
    }

    .auth-form .auth-field input,
    .auth-form .auth-field select {
        padding: 12px 38px 12px 38px;
        font-size: 0.85rem;
    }

    .tab-btn {
        font-size: 0.78rem;
        padding: 10px 12px;
    }

    .submit-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .login-header .account-logo img {
        max-height: 35px;
    }

    .brand-col .brand-content .brand-features .feature-item {
        font-size: 0.85rem;
        padding: 10px 16px;
    }

    .auth-column {
        padding: 15px 10px;
    }

    .row.g-0 {
        padding: 0;
    }
}

/* Telas Muito Grandes (Desktop Wide) */
@media (min-width: 1400px) {
    .auth-container {
        max-width: 580px;
        padding: 55px 50px 50px 50px;
    }

    .auth-card {
        max-width: 1300px;
    }

    .brand-col .brand-content {
        max-width: 550px;
    }

    .brand-col .brand-content h1 {
        font-size: 3.5rem;
    }

    .auth-form .auth-field input,
    .auth-form .auth-field select {
        padding: 16px 48px 16px 48px;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 1.1rem;
        font-size: 1.05rem;
    }
}

/* Ajuste para o captcha */
.mb-3 {
    margin-bottom: 1rem;
}

/* Scroll suave para o formulário */
.auth-container {
    scroll-margin-top: 20px;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.auth-field.error {
    border-color: #dc3545;
}

.auth-field.error input,
.auth-field.error select {
    border-color: #dc3545;
}

.auth-field.success input,
.auth-field.success select {
    border-color: #28a745;
}

.field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}