/* ============================================================
   🔐 AUTH — Login e Cadastro
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--roxo-profundo);
    overflow-x: hidden;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

/* ============================================================
   🎭 LADO ESQUERDO — BRANDING
   ============================================================ */
.auth-brand {
    background: linear-gradient(135deg, 
        var(--roxo-escuro) 0%, 
        var(--roxo-profundo) 100%);
    padding: var(--espaco-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(168, 85, 247, 0.2) 0%, 
        transparent 70%);
    animation: float 8s ease infinite;
    pointer-events: none;
}

.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 70%);
    animation: float 6s ease infinite reverse;
    pointer-events: none;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--espaco-sm);
    font-family: var(--font-titulo);
    font-size: 2rem;
    font-weight: 900;
    color: var(--dourado);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
    margin-bottom: var(--espaco-2xl);
    position: relative;
    z-index: 1;
}

.auth-logo-icone {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px var(--roxo-neon));
}

.auth-brand-titulo {
    font-family: var(--font-titulo);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--branco);
    line-height: 1.1;
    margin-bottom: var(--espaco-lg);
    position: relative;
    z-index: 1;
}

.auth-brand-titulo .texto-gradiente {
    background: linear-gradient(135deg, 
        var(--dourado-claro), 
        var(--dourado), 
        var(--roxo-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.auth-brand-descricao {
    font-size: 1.125rem;
    color: var(--branco);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: var(--espaco-xl);
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: var(--espaco-md);
    position: relative;
    z-index: 1;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: var(--espaco-md);
    font-size: 1rem;
    color: var(--branco);
    opacity: 0.9;
}

.auth-feature-icone {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--roxo-claro);
    border-radius: var(--borda-sm);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ============================================================
   🎯 LADO DIREITO — FORMULÁRIO
   ============================================================ */
.auth-form-container {
    background: var(--roxo-profundo);
    padding: var(--espaco-2xl) var(--espaco-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

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

.auth-form-header {
    margin-bottom: var(--espaco-xl);
}

.auth-form-titulo {
    font-family: var(--font-titulo);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--dourado);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--espaco-sm);
}

.auth-form-subtitulo {
    color: var(--branco);
    opacity: 0.7;
    font-size: 0.95rem;
}

.auth-form-subtitulo a {
    color: var(--dourado);
    font-weight: 600;
    transition: all var(--transicao-media);
}

.auth-form-subtitulo a:hover {
    color: var(--dourado-claro);
    text-decoration: underline;
}

/* Formulário */
.auth-form {
    margin-bottom: var(--espaco-lg);
}

.form-grupo-inline {
    margin-bottom: var(--espaco-lg);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--espaco-sm);
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--branco);
    opacity: 0.9;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dourado);
    cursor: pointer;
}

.form-link-esqueci {
    float: right;
    font-size: 0.85rem;
    color: var(--dourado);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    transition: all var(--transicao-media);
}

.form-link-esqueci:hover {
    color: var(--dourado-claro);
    text-decoration: underline;
}

/* Senha com toggle */
.form-senha-wrapper {
    position: relative;
}

.form-senha-wrapper .form-input {
    padding-right: 50px;
}

.form-toggle-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transicao-media);
    padding: 4px;
}

.form-toggle-senha:hover {
    opacity: 1;
}

/* Botão full */
.btn-full {
    width: 100%;
    margin-bottom: var(--espaco-md);
}

/* Loading do botão */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--espaco-xs);
}

/* ============================================================
   🔀 DIVISOR SOCIAL
   ============================================================ */
.auth-divisor {
    display: flex;
    align-items: center;
    gap: var(--espaco-md);
    margin: var(--espaco-lg) 0;
    color: var(--branco);
    opacity: 0.5;
    font-size: 0.85rem;
}

.auth-divisor::before,
.auth-divisor::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(212, 175, 55, 0.3), 
        transparent);
}

/* Social */
.auth-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--espaco-sm);
    margin-bottom: var(--espaco-lg);
}

.btn-social {
    padding: 12px 16px;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-texto);
    font-weight: 500;
    gap: var(--espaco-sm);
}

.btn-social svg {
    flex-shrink: 0;
}

/* Footer */
.auth-form-footer {
    font-size: 0.8rem;
    color: var(--branco);
    opacity: 0.5;
    text-align: center;
    line-height: 1.6;
}

.auth-form-footer a {
    color: var(--dourado);
    opacity: 1;
}

/* ============================================================
   📱 RESPONSIVO
   ============================================================ */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: var(--espaco-xl) var(--espaco-lg);
        min-height: auto;
    }

    .auth-brand-features {
        display: none;
    }

    .auth-logo {
        font-size: 1.5rem;
        margin-bottom: var(--espaco-lg);
    }

    .auth-logo-icone {
        font-size: 2rem;
    }

    .auth-brand-titulo {
        font-size: 1.75rem;
    }

    .auth-brand-descricao {
        font-size: 1rem;
        margin-bottom: var(--espaco-md);
    }

    .auth-form-container {
        padding: var(--espaco-xl) var(--espaco-lg);
    }
}

@media (max-width: 480px) {
    .auth-social {
        grid-template-columns: 1fr;
    }
}
