/* CSS para corrigir campos de formulário com ícones */
/* Garante que os ícones não fiquem por cima das letras */

.form-group {
    position: relative !important;
}

.form-input {
    width: 100% !important;
    padding: 1rem 1rem 1rem 3rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
}

.form-input:focus {
    outline: none !important;
    border-color: var(--cor-primaria) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(var(--cor-primaria), 0.1) !important;
}

.form-input::placeholder {
    color: #6b7280 !important;
}

.input-icon {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6b7280 !important;
    font-size: 1rem !important;
    transition: color 0.3s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.form-group:focus-within .input-icon {
    color: var(--cor-primaria) !important;
}

/* Garantir que os ícones não fiquem por cima das letras */
.form-group .input-icon {
    z-index: 1 !important;
    pointer-events: none !important;
}

.form-group input {
    position: relative !important;
    z-index: 2 !important;
}

/* Campos específicos de senha */
.password-field {
    position: relative !important;
}

.password-field input {
    padding-right: 3rem !important;
}

.password-toggle {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    z-index: 3 !important;
    padding: 0.25rem !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.password-toggle:hover {
    color: var(--cor-primaria) !important;
    background: rgba(34, 197, 94, 0.1) !important;
}

/* Campos de email e usuário */
.email-field,
.user-field {
    position: relative !important;
}

.email-field input,
.user-field input {
    padding-left: 3rem !important;
}

.email-field .input-icon,
.user-field .input-icon {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6b7280 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-input {
        font-size: 16px !important; /* Evita zoom no iOS */
    }
    
    .input-icon {
        font-size: 1rem !important;
    }
} 