/**
 * Estilos de Autenticacao - Rede SX
 * Login e Cadastro
 */

.auth-page {
    background: linear-gradient(135deg, #1a0a2e 0%, #16082a 50%, #0d0518 100%);
    min-height: 100vh;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
}

/* Container de Auth */
.auth-container {
    width: 100%;
    max-width: 400px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    animation: scaleIn var(--transition-normal);
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-logo img,
.auth-logo .logo-img {
    width: 120px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto var(--spacing-md);
    display: block;
}

.auth-logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.auth-logo p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Titulo da pagina */
.auth-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Formulario */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Links */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
    margin-top: var(--spacing-lg);
}

.auth-links a {
    color: var(--roxo-principal);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-links a:hover {
    color: var(--roxo-claro);
    text-decoration: underline;
}

.auth-links .divider-text {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* Barra de Progresso do Cadastro */
.cadastro-progress {
    margin-bottom: var(--spacing-lg);
}

.cadastro-progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.cadastro-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.cadastro-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cadastro-progress-step {
    font-weight: 600;
    color: var(--roxo-principal);
}

/* Selecao de Tipo de Perfil */
.profile-type-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.profile-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-type-option:hover {
    border-color: var(--roxo-claro);
}

.profile-type-option.selected {
    border-color: var(--roxo-principal);
    background: rgba(147, 51, 234, 0.1);
}

.profile-type-option input {
    display: none;
}

.profile-type-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 1.5rem;
}

.profile-type-option.selected .profile-type-icon {
    background: var(--gradient-primary);
}

.profile-type-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* Campos de Casal (lado a lado) */
.casal-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.casal-field-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.casal-field-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--roxo-principal);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-light);
}

/* Chips de Selecao (Interesses/Fetiches) */
.selection-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    max-height: 200px;
    overflow-y: auto;
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.selection-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.selection-chip:hover {
    border-color: var(--roxo-principal);
}

.selection-chip.selected {
    background: var(--roxo-principal);
    border-color: var(--roxo-principal);
    color: white;
}

.selection-chip input {
    display: none;
}

/* Botoes de Navegacao */
.auth-nav-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.auth-nav-buttons .btn {
    flex: 1;
}

/* Codigo SX / Codigo de Acesso */
.code-display {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin: var(--spacing-md) 0;
}

.code-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.code-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--roxo-principal);
    font-family: monospace;
    letter-spacing: 2px;
}

.code-copy-btn {
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
}

/* Sucesso do Cadastro */
.cadastro-success {
    text-align: center;
    padding: var(--spacing-xl);
}

.cadastro-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--verde);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn var(--transition-normal);
}

.cadastro-success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.cadastro-success h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.cadastro-success p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Responsividade */
@media (max-width: 480px) {
    .auth-container {
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    .profile-type-select {
        grid-template-columns: 1fr;
    }

    .profile-type-option {
        flex-direction: row;
        justify-content: flex-start;
    }

    .casal-fields {
        grid-template-columns: 1fr;
    }
}

/* Animacao de transicao entre etapas */
.etapa-enter {
    animation: slideUp var(--transition-normal);
}

.etapa-exit {
    animation: fadeOut var(--transition-fast);
}
