/* custom-auth.css - Estilos avançados e responsivos */

.custom-auth-container {
    max-width: 420px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    position: relative;
}

.custom-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.custom-auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.5px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 5px 10px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input:valid {
    border-color: #27ae60;
}

.form-group small {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Checkbox personalizado */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #667eea;
}

.auth-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-button:disabled::before {
    display: none;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: #667eea;
    transition: all 0.3s ease;
}

.auth-links a:hover::after {
    width: 100%;
    left: 0;
}

.auth-links a:hover {
    color: #764ba2;
}

/* Mensagens de feedback */
.auth-messages {
    margin-bottom: 20px;
    font-size: 18px;
}

.auth-messages .success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-bottom: 15px;
    animation: slideInDown 0.3s ease;
}

.auth-messages .error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-bottom: 15px;
    animation: slideInDown 0.3s ease;
}

/* Mensagem para usuários logados */
.auth-message {
    max-width: 420px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    color: #0c5460;
}

.auth-message a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}
.register-step {
    display: none;
}
.register-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}
.form-actions {
    display: flex;
    justify-content: space-between;
    gap:20px;
    margin-top: 20px;
}

.required {
    color: #dc3545;
}

/* ==============================================
   CSS para controle de visibilidade BuddyPress
   ============================================== */

/* Estilos para o controle de visibilidade dos campos */
.field-visibility-settings-toggle {
    margin-top: 5px;
    margin-bottom: 10px;
}

.field-visibility-settings-toggle small {
    color: #666;
    font-size: 12px;
    display: block;
}

.visibility-toggle-link {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px;
    padding: 0;
    margin-left: 5px;
}

.visibility-toggle-link:hover {
    color: #005a87;
}

.field-visibility-settings {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
    display: none; /* Oculto por padrão */
}

.field-visibility-settings.show {
    display: block;
}

.field-visibility-settings fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.field-visibility-settings legend {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
}

.field-visibility-settings label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.field-visibility-settings input[type="radio"] {
    margin-right: 8px;
}

.field-visibility-settings-close {
    background: #0073aa;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

.field-visibility-settings-close:hover {
    background: #005a87;
}

.field-visibility-settings-notoggle small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.auth-button:focus {
    animation: pulse 0.3s ease-in-out;
}

/* Indicador de força da senha */
.password-strength {
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak .password-strength-bar {
    width: 33%;
    background: #e74c3c;
}

.password-strength-medium .password-strength-bar {
    width: 66%;
    background: #f39c12;
}

.password-strength-strong .password-strength-bar {
    width: 100%;
    background: #27ae60;
}

/* Loading state */
.auth-button.loading {
    position: relative;
    color: transparent;
}

.auth-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 480px) {
    .custom-auth-container {
        margin: 20px;
        padding: 30px 20px;
        max-width: none;
    }
    
    .custom-auth-form h2 {
        font-size: 24px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 14px 16px;
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .auth-button {
        padding: 14px;
        font-size: 15px;
    }
}

/* Tema escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .custom-auth-container {
        background: #2c3e50;
        border: 1px solid #34495e;
        color: #ecf0f1;
    }
    
    .custom-auth-form h2 {
        color: #ecf0f1;
    }
    
    .form-group label {
        color: #bdc3c7;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        background: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .form-group input:focus {
        background: #3a5170;
        border-color: #667eea;
    }
    
    .auth-links {
        border-top-color: #4a5f7a;
    }
}